mirror of
https://github.com/inverse-inc/sogo.git
synced 2026-03-14 03:11:24 +00:00
Merge pull request #208 from zentyal/jgarcia/wocontext-fun
User context activation when cached
This commit is contained in:
@@ -73,6 +73,8 @@ static NSMapTable *contextsTable = nil;
|
||||
[userContext autorelease];
|
||||
[contextsTable setObject: userContext forKey: username];
|
||||
}
|
||||
else
|
||||
[userContext activate];
|
||||
|
||||
return userContext;
|
||||
}
|
||||
|
||||
@@ -180,6 +180,9 @@
|
||||
[NSException raise: NSInvalidArgumentException
|
||||
format: @"'_name' must not be an empty string"];
|
||||
context = [[WOApplication application] context];
|
||||
if (!context)
|
||||
[self errorWithFormat: @"Error: initializing a SOGoObject (named %@) "
|
||||
@"without wocontext", _name];
|
||||
nameInContainer = [_name copy];
|
||||
container = _container;
|
||||
if ([self doesRetainContainer])
|
||||
|
||||
Reference in New Issue
Block a user