From: helge Date: Fri, 8 Oct 2004 15:12:37 +0000 (+0000) Subject: changed in name lookup X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=842adeb95a41593036b384c10d613f19ce1ac791;p=scalable-opengroupware.org changed in name lookup git-svn-id: http://svn.opengroupware.org/SOGo/trunk@374 d1b88da0-ebda-0310-925b-ed51d893ca5b --- diff --git a/SOGo/SoObjects/SOGo/ChangeLog b/SOGo/SoObjects/SOGo/ChangeLog index d8905758..b8d02601 100644 --- a/SOGo/SoObjects/SOGo/ChangeLog +++ b/SOGo/SoObjects/SOGo/ChangeLog @@ -1,5 +1,8 @@ 2004-10-08 Helge Hess - + + * 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) diff --git a/SOGo/SoObjects/SOGo/SOGoUserFolder.m b/SOGo/SoObjects/SOGo/SOGoUserFolder.m index f0ccb776..8c16f4af 100644 --- a/SOGo/SoObjects/SOGo/SOGoUserFolder.m +++ b/SOGo/SoObjects/SOGo/SOGoUserFolder.m @@ -154,8 +154,16 @@ 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]; diff --git a/SOGo/SoObjects/SOGo/Version b/SOGo/SoObjects/SOGo/Version index b110bb31..886efe19 100644 --- a/SOGo/SoObjects/SOGo/Version +++ b/SOGo/SoObjects/SOGo/Version @@ -1,3 +1,3 @@ # $Id: Version 170 2004-08-11 10:45:40Z helge $ -SUBMINOR_VERSION:=24 +SUBMINOR_VERSION:=25