Monotone-Parent: 2cf3be019f697c04a2f19de8e9693b7b7a1ddf8d

Monotone-Revision: a8e6d3c082060d0b8f4e1c547734baf974d5ee7c

Monotone-Author: wsourdeau@inverse.ca
Monotone-Date: 2006-08-10T22:03:48
Monotone-Branch: ca.inverse.sogo
This commit is contained in:
Wolfgang Sourdeau
2006-08-10 22:03:48 +00:00
parent 17d7ab187e
commit aafcaeff9f
2 changed files with 19 additions and 3 deletions
+12 -3
View File
@@ -93,15 +93,24 @@
}
- (id) lookupName: (NSString *) _key
inContext: (id) _ctx
inContext: (WOContext *) _ctx
acquire: (BOOL) _flag
{
id obj;
/* first check attributes directly bound to the application */
obj = [super lookupName:_key inContext:_ctx acquire:NO];
if (!obj)
obj = [self lookupContactWithId: _key];
{
if ([[[_ctx request] method] isEqualToString: @"PUT"])
{
obj = [[SOGoContactGCSEntry alloc] initWithName: _key
inContainer: self];
[obj autorelease];
}
else
obj = [self lookupContactWithId: _key];
}
if (!obj)
obj = [NSException exceptionWithHTTPStatus:404 /* Not Found */];