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:
Wolfgang Sourdeau
2007-09-14 23:16:16 +00:00
parent 9826fc1dfc
commit 2a0f7e7fb4
+23
View File
@@ -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