mirror of
https://github.com/inverse-inc/sogo.git
synced 2026-05-23 12:25:23 +00:00
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:
@@ -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 */];
|
||||
|
||||
|
||||
Reference in New Issue
Block a user