Monotone-Parent: 25fed2157caf8da35ae90d48f9cc9413a71e94ea
Monotone-Revision: 3eebff6c3d23fc58587f9e610046a48169abeb91 Monotone-Author: wsourdeau@inverse.ca Monotone-Date: 2006-09-18T15:28:15 Monotone-Branch: ca.inverse.sogo
This commit is contained in:
parent
1e0b313acf
commit
127401a464
|
@ -442,6 +442,7 @@
|
||||||
- (id) saveAction
|
- (id) saveAction
|
||||||
{
|
{
|
||||||
id <SOGoContactObject> contact;
|
id <SOGoContactObject> contact;
|
||||||
|
id result;
|
||||||
|
|
||||||
contact = [self clientObject];
|
contact = [self clientObject];
|
||||||
card = [contact vCard];
|
card = [contact vCard];
|
||||||
|
@ -449,54 +450,14 @@
|
||||||
{
|
{
|
||||||
[self _saveSnapshot];
|
[self _saveSnapshot];
|
||||||
[contact save];
|
[contact save];
|
||||||
|
result = self;
|
||||||
}
|
}
|
||||||
// NSException *ex;
|
else
|
||||||
// NSString *uri;
|
result = [NSException exceptionWithHTTPStatus: 400 /* Bad Request */
|
||||||
// NSDictionary *record;
|
reason: @"method cannot be invoked on "
|
||||||
// NSMutableDictionary *newRecord;
|
@"the specified object"];
|
||||||
|
|
||||||
// if ([[self clientObject]
|
return result;
|
||||||
// respondsToSelector: @selector (saveContentString:)])
|
|
||||||
// {
|
|
||||||
// if (contentString)
|
|
||||||
// {
|
|
||||||
// record = [contentString propertyList];
|
|
||||||
// if (record)
|
|
||||||
// {
|
|
||||||
// newRecord = [[record mutableCopy] autorelease];
|
|
||||||
// [self saveValuesIntoRecord: newRecord];
|
|
||||||
// ex = [[self clientObject] saved];
|
|
||||||
// if (ex)
|
|
||||||
// {
|
|
||||||
// [self setErrorText: [ex reason]];
|
|
||||||
|
|
||||||
// return self;
|
|
||||||
// }
|
|
||||||
// else
|
|
||||||
// {
|
|
||||||
// uri = [self viewActionName];
|
|
||||||
// if ([uri length] <= 0)
|
|
||||||
// uri = @"..";
|
|
||||||
|
|
||||||
// return [self redirectToLocation: [self _completeURIForMethod: uri]];
|
|
||||||
// }
|
|
||||||
// }
|
|
||||||
// else
|
|
||||||
// {
|
|
||||||
// [self setErrorText: @"Invalid property list data ..."]; // localize
|
|
||||||
// return self;
|
|
||||||
// }
|
|
||||||
// }
|
|
||||||
// else
|
|
||||||
// {
|
|
||||||
// [self setErrorText: @"Missing object content!"]; // localize
|
|
||||||
// return self;
|
|
||||||
// }
|
|
||||||
// }
|
|
||||||
// else
|
|
||||||
return [NSException exceptionWithHTTPStatus: 400 /* Bad Request */
|
|
||||||
reason: @"method cannot be invoked on "
|
|
||||||
@"the specified object"];
|
|
||||||
}
|
}
|
||||||
|
|
||||||
- (id) writeAction
|
- (id) writeAction
|
||||||
|
|
Loading…
Reference in a new issue