mirror of
https://github.com/inverse-inc/sogo.git
synced 2026-07-07 09:25:09 +00:00
Monotone-Parent: ed4ace3848e6db50985728fd7e65ef650f45e202
Monotone-Revision: 53251d894e24b81b16181d88c88f3aed369a5d19 Monotone-Author: wsourdeau@inverse.ca Monotone-Date: 2007-09-14T23:16:16 Monotone-Branch: ca.inverse.sogo
This commit is contained in:
@@ -219,4 +219,27 @@
|
||||
return response;
|
||||
}
|
||||
|
||||
- (id) batchDeleteAction
|
||||
{
|
||||
WOResponse *response;
|
||||
NSString *idsParam;
|
||||
NSArray *ids;
|
||||
|
||||
idsParam = [[context request] formValueForKey: @"ids"];
|
||||
ids = [idsParam componentsSeparatedByString: @"/"];
|
||||
if ([ids count])
|
||||
{
|
||||
clientObject = [self clientObject];
|
||||
[clientObject deleteEntriesWithIds: ids];
|
||||
response = [self responseWith204];
|
||||
}
|
||||
else
|
||||
{
|
||||
response = [self responseWithStatus: 500];
|
||||
[response appendContentString: @"At least 1 id required."];
|
||||
}
|
||||
|
||||
return response;
|
||||
}
|
||||
|
||||
@end
|
||||
|
||||
Reference in New Issue
Block a user