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:
Wolfgang Sourdeau
2007-06-04 22:38:43 +00:00
parent df229b29fd
commit bf7ad02d5c
16 changed files with 32 additions and 465 deletions
+11 -7
View File
@@ -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])