+2008-02-12 Wolfgang Sourdeau <wsourdeau@inverse.ca>
+
+ * SoObjects/Appointments/SOGoFreeBusyObject.m ([SOGoFreeBusyObject
+ -iCalStringForFreeBusyInfos:_infosfrom:_startDateto:_endDate]): we
+ no longer invoke [container login], since this method has been
+ removed. Instead we invoke ownerInContext:.
+
+ * SoObjects/SOGo/SOGoFolder.m ([SOGoFolder
+ -fetchContentObjectNames]): new model method for all subclasses.
+ This will be removed in the future since toOneRelationshipKeys
+ must be sufficient.
+
+ * SoObjects/SOGo/SOGoGCSFolder.m ([SOGoGCSFolder
+ -defaultFilenameExtension]): removed useless method.
+ ([-toOneRelationshipKeys]): moved method into SOGoFolder.m.
+
2008-02-08 Wolfgang Sourdeau <wsourdeau@inverse.ca>
* UI/MailPartViewers/UIxMailPartICalViewer.m
NSDictionary *info;
iCalFreeBusyType type;
- uid = [[self container] login];
+ uid = [container ownerInContext: context];
calendar = [iCalCalendar groupWithTag: @"vcalendar"];
[calendar setProdID: @"//Inverse groupe conseil/SOGo 0.9"];
- (NSString *) displayName;
- (NSString *) folderType;
+- (NSArray *) fetchContentObjectNames;
/* sorting */
- (NSComparisonResult) compare: (id) otherFolder;
return obj;
}
+#warning we should remove this method
+- (NSArray *) toOneRelationshipKeys
+{
+ return [self fetchContentObjectNames];
+}
+
+- (NSArray *) fetchContentObjectNames
+{
+ return [NSArray array];
+}
+
- (BOOL) isFolderish
{
return YES;
}
if ([records isKindOfClass: [NSException class]])
return records;
+
return [records objectsForKey: @"c_name"];
}
}
}
+#warning this method is dirty code
- (NSDictionary *) fetchContentStringsAndNamesOfAllObjects
{
NSDictionary *files;
return files;
}
-/* reflection */
-
-- (NSString *) defaultFilenameExtension
-{
- /*
- Override to add an extension to a filename
-
- Note: be careful with that, needs to be consistent with object lookup!
- */
- return nil;
-}
-
-- (NSArray *) toOneRelationshipKeys
-{
- /* toOneRelationshipKeys are the 'files' contained in a folder */
- NSMutableArray *ma;
- NSArray *names;
- NSString *name, *ext;
- unsigned i, count;
- NSRange r;
-
- names = [self fetchContentObjectNames];
- count = [names count];
- ext = [self defaultFilenameExtension];
- if (count && [ext length] > 0)
- {
- ma = [NSMutableArray arrayWithCapacity: count];
- for (i = 0; i < count; i++)
- {
- name = [names objectAtIndex: i];
- r = [name rangeOfString: @"."];
- if (r.length == 0)
- name = [NSMutableString stringWithFormat: @"%@.%@", name, ext];
- [ma addObject: name];
- }
-
- names = ma;
- }
-
- return names;
-}
-
#warning this code should be cleaned up
#warning this code is a dup of UIxFolderActions,\
we should remove the methods there instead