mirror of
https://github.com/inverse-inc/sogo.git
synced 2026-05-22 03:45:25 +00:00
Monotone-Parent: 5a9d1a37ff5b7e57b7c92db2cc2c56d3af92d80c
Monotone-Revision: 1c7442ef9f84ce58c394c1539163f94d731b3545 Monotone-Author: flachapelle@inverse.ca Monotone-Date: 2008-07-08T11:32:43 Monotone-Branch: ca.inverse.sogo
This commit is contained in:
@@ -320,7 +320,7 @@
|
||||
else
|
||||
result = (([[card childrenWithTag: @"url"
|
||||
andAttribute: @"type"
|
||||
havingValue: @"work"] count] > 0)
|
||||
havingValue: @"work"] count] > 0)
|
||||
|| [[card childrenWithTag: @"org"] count] > 0);
|
||||
|
||||
return result;
|
||||
@@ -524,26 +524,24 @@
|
||||
- (id) deleteAction
|
||||
{
|
||||
NSException *ex;
|
||||
id url;
|
||||
|
||||
if (![self isDeletableClientObject])
|
||||
/* return 400 == Bad Request */
|
||||
return [NSException exceptionWithHTTPStatus:400
|
||||
reason:@"method cannot be invoked on "
|
||||
@"the specified object"];
|
||||
|
||||
return [NSException exceptionWithHTTPStatus: 400
|
||||
reason:@"method cannot be invoked on "
|
||||
@"the specified object"];
|
||||
|
||||
ex = [[self clientObject] delete];
|
||||
if (ex)
|
||||
{
|
||||
// TODO: improve error handling
|
||||
[self debugWithFormat:@"failed to delete: %@", ex];
|
||||
|
||||
// TODO: improve error handling
|
||||
[self debugWithFormat: @"failed to delete: %@", ex];
|
||||
|
||||
return ex;
|
||||
}
|
||||
|
||||
url = [[[self clientObject] container] baseURLInContext:[self context]];
|
||||
|
||||
return [self redirectToLocation:url];
|
||||
|
||||
return [self responseWithStatus: 200
|
||||
andString: [[self clientObject] nameInContainer]];
|
||||
}
|
||||
|
||||
@end /* UIxContactView */
|
||||
|
||||
Reference in New Issue
Block a user