mirror of
https://github.com/inverse-inc/sogo.git
synced 2026-08-19 21:53:19 +00:00
Monotone-Parent: 42e111d1ab25686092e392def5b8aa0c22f4d88b
Monotone-Revision: 4557052eb5dc8198cf068bbf758611f237e58e0f Monotone-Author: wsourdeau@inverse.ca Monotone-Date: 2007-06-04T22:38:43 Monotone-Branch: ca.inverse.sogo
This commit is contained in:
@@ -89,22 +89,26 @@
|
||||
acquire: (BOOL) _flag
|
||||
{
|
||||
id obj;
|
||||
BOOL isPut;
|
||||
|
||||
isPut = NO;
|
||||
/* first check attributes directly bound to the application */
|
||||
obj = [super lookupName:_key inContext:_ctx acquire:NO];
|
||||
if (!obj)
|
||||
{
|
||||
if ([[[_ctx request] method] isEqualToString: @"PUT"])
|
||||
{
|
||||
obj = [[SOGoContactGCSEntry alloc] initWithName: _key
|
||||
inContainer: self];
|
||||
[obj autorelease];
|
||||
}
|
||||
{
|
||||
if ([_key isEqualToString: @"PUT"])
|
||||
isPut = YES;
|
||||
else
|
||||
obj = [SOGoContactGCSEntry objectWithName: _key
|
||||
inContainer: self];
|
||||
}
|
||||
else
|
||||
obj = [self lookupContactWithId: _key];
|
||||
}
|
||||
if (!obj)
|
||||
obj = [NSException exceptionWithHTTPStatus:404 /* Not Found */];
|
||||
// if (!(obj || isPut))
|
||||
// obj = [NSException exceptionWithHTTPStatus:404 /* Not Found */];
|
||||
|
||||
// #if 0
|
||||
// if ([[self ocsFolder] versionOfContentWithName:_key])
|
||||
|
||||
Reference in New Issue
Block a user