Monotone-Parent: 463195ab0268a4a769eab22f23b6aecf0c87ad79

Monotone-Revision: 9abbb51cbabcad645190865841814453369fa85f

Monotone-Author: wsourdeau@inverse.ca
Monotone-Date: 2007-11-18T10:16:25
Monotone-Branch: ca.inverse.sogo
This commit is contained in:
Wolfgang Sourdeau
2007-11-18 10:16:25 +00:00
parent e3cdb8ecbf
commit 73bfada6bf
50 changed files with 1751 additions and 1265 deletions
+12 -20
View File
@@ -142,6 +142,7 @@ NSString *SOGoWeekStartFirstFullWeek = @"FirstFullWeek";
language = nil;
currentPassword = nil;
dateFormatter = nil;
homeFolder = nil;
}
return self;
@@ -176,6 +177,7 @@ NSString *SOGoWeekStartFirstFullWeek = @"FirstFullWeek";
[allEmails release];
[language release];
[dateFormatter release];
[homeFolder release];
[super dealloc];
}
@@ -528,27 +530,17 @@ NSString *SOGoWeekStartFirstFullWeek = @"FirstFullWeek";
// TODO: those methods should check whether the traversal stack in the context
// already contains proper folders to improve caching behaviour
- (id) homeFolderInContext: (id) _ctx
- (SOGoUserFolder *) homeFolderInContext: (id) context
{
/* Note: watch out for cyclic references */
// TODO: maybe we should add an [activeUser reset] method to SOPE
id folder;
folder = [(WOContext *)_ctx objectForKey:@"ActiveUserHomeFolder"];
if (folder != nil)
return [folder isNotNull] ? folder : nil;
folder = [[WOApplication application] lookupName: [self login]
inContext: _ctx
acquire: NO];
if ([folder isKindOfClass:[NSException class]])
return folder;
[(WOContext *)_ctx setObject: ((folder)
? folder
: (id)[NSNull null])
forKey: @"ActiveUserHomeFolder"];
return folder;
if (!homeFolder)
{
homeFolder = [[WOApplication application] lookupName: [self login]
inContext: context
acquire: NO];
[homeFolder retain];
}
return homeFolder;
}
- (SOGoAppointmentFolders *) calendarsFolderInContext: (WOContext *) context