2004-10-08 Helge Hess <helge.hess@opengroupware.org>
-
+
+ * SOGoUserFolder.m: enhanced object lookup so that when a Calendar
+ is opened with an extensions (eg "Calendar.ics") (v0.9.25)
+
* SOGoFolder.m: added facility to define default extensions (v0.9.24)
* SOGoObject.m: fixed not implemented return status (501, not 502)
if ((obj = [super lookupName:_key inContext:_ctx acquire:NO]))
return obj;
- if ([_key isEqualToString:@"Calendar"])
- return [self privateCalendar:_key inContext:_ctx];
+ if ([_key hasPrefix:@"Calendar"]) {
+ id calendar;
+
+ calendar = [self privateCalendar:@"Calendar" inContext:_ctx];
+ if ([_key isEqualToString:@"Calendar"])
+ return calendar;
+
+ return [calendar lookupName:[_key pathExtension]
+ inContext:_ctx acquire:NO];
+ }
if ([_key isEqualToString:@"Contacts"])
return [self privateContacts:_key inContext:_ctx];