2007-03-18 16:20:38 +01:00
|
|
|
/* UIxTaskEditor.m - this file is part of SOGo
|
|
|
|
*
|
|
|
|
* Copyright (C) 2007 Inverse groupe conseil
|
|
|
|
*
|
|
|
|
* Author: Wolfgang Sourdeau <wsourdeau@inverse.ca>
|
|
|
|
*
|
|
|
|
* This file is free software; you can redistribute it and/or modify
|
|
|
|
* it under the terms of the GNU General Public License as published by
|
|
|
|
* the Free Software Foundation; either version 2, or (at your option)
|
|
|
|
* any later version.
|
|
|
|
*
|
|
|
|
* This file is distributed in the hope that it will be useful,
|
|
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
* GNU General Public License for more details.
|
|
|
|
*
|
|
|
|
* You should have received a copy of the GNU General Public License
|
|
|
|
* along with this program; see the file COPYING. If not, write to
|
|
|
|
* the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
|
|
|
|
* Boston, MA 02111-1307, USA.
|
|
|
|
*/
|
|
|
|
|
|
|
|
#import <NGObjWeb/SoObject.h>
|
|
|
|
#import <NGObjWeb/WORequest.h>
|
2007-12-17 16:29:06 +01:00
|
|
|
#import <NGObjWeb/WOResponse.h>
|
2007-03-18 16:20:38 +01:00
|
|
|
#import <NGObjWeb/NSException+HTTP.h>
|
|
|
|
#import <NGExtensions/NSCalendarDate+misc.h>
|
|
|
|
|
2007-11-09 00:18:52 +01:00
|
|
|
#import <NGCards/iCalCalendar.h>
|
2007-03-18 16:20:38 +01:00
|
|
|
#import <NGCards/iCalToDo.h>
|
|
|
|
#import <NGCards/iCalPerson.h>
|
|
|
|
|
|
|
|
#import <SoObjects/SOGo/SOGoUser.h>
|
|
|
|
#import <SoObjects/SOGo/SOGoContentObject.h>
|
|
|
|
#import <SoObjects/Appointments/SOGoAppointmentFolder.h>
|
|
|
|
#import <SoObjects/Appointments/SOGoTaskObject.h>
|
|
|
|
|
|
|
|
#import "UIxComponentEditor.h"
|
|
|
|
#import "UIxTaskEditor.h"
|
2006-10-11 20:15:29 +02:00
|
|
|
|
2007-03-18 16:20:38 +01:00
|
|
|
@implementation UIxTaskEditor
|
2006-10-11 20:15:29 +02:00
|
|
|
|
2007-03-18 16:20:38 +01:00
|
|
|
- (id) init
|
|
|
|
{
|
|
|
|
if ((self = [super init]))
|
|
|
|
{
|
|
|
|
taskStartDate = nil;
|
|
|
|
taskDueDate = nil;
|
|
|
|
statusDate = nil;
|
|
|
|
hasStartDate = NO;
|
|
|
|
hasDueDate = NO;
|
|
|
|
status = nil;
|
|
|
|
statusPercent = nil;
|
|
|
|
item = nil;
|
|
|
|
todo = nil;
|
|
|
|
}
|
2006-10-11 20:15:29 +02:00
|
|
|
|
2007-03-18 16:20:38 +01:00
|
|
|
return self;
|
|
|
|
}
|
2006-10-11 20:15:29 +02:00
|
|
|
|
2007-03-18 16:20:38 +01:00
|
|
|
- (void) dealloc
|
|
|
|
{
|
|
|
|
[taskStartDate release];
|
|
|
|
[taskDueDate release];
|
|
|
|
[statusDate release];
|
|
|
|
[status release];
|
|
|
|
[statusPercent release];
|
2007-11-19 20:17:44 +01:00
|
|
|
[todo release];
|
2007-03-18 16:20:38 +01:00
|
|
|
[super dealloc];
|
|
|
|
}
|
2006-10-11 20:15:29 +02:00
|
|
|
|
2007-03-18 16:20:38 +01:00
|
|
|
/* template values */
|
|
|
|
- (iCalToDo *) todo
|
|
|
|
{
|
2007-11-19 22:07:54 +01:00
|
|
|
if (!todo)
|
|
|
|
{
|
2007-11-27 00:25:35 +01:00
|
|
|
todo = (iCalToDo *) [[self clientObject] component: YES secure: YES];
|
2007-11-19 22:07:54 +01:00
|
|
|
[todo retain];
|
|
|
|
}
|
|
|
|
|
2007-03-18 16:20:38 +01:00
|
|
|
return todo;
|
|
|
|
}
|
2006-10-11 20:15:29 +02:00
|
|
|
|
2007-03-18 16:20:38 +01:00
|
|
|
- (NSString *) saveURL
|
|
|
|
{
|
|
|
|
return [NSString stringWithFormat: @"%@/saveAsTask",
|
|
|
|
[[self clientObject] baseURL]];
|
|
|
|
}
|
2006-10-11 20:15:29 +02:00
|
|
|
|
2007-03-18 16:20:38 +01:00
|
|
|
/* icalendar values */
|
|
|
|
- (void) setTaskStartDate: (NSCalendarDate *) newTaskStartDate
|
2006-10-12 18:42:59 +02:00
|
|
|
{
|
2007-03-18 16:20:38 +01:00
|
|
|
ASSIGN (taskStartDate, newTaskStartDate);
|
2006-10-11 20:15:29 +02:00
|
|
|
}
|
2006-10-12 18:42:59 +02:00
|
|
|
|
2006-10-18 16:42:44 +02:00
|
|
|
- (NSCalendarDate *) taskStartDate
|
2006-10-12 18:42:59 +02:00
|
|
|
{
|
2007-03-18 16:20:38 +01:00
|
|
|
return taskStartDate;
|
2006-10-11 20:15:29 +02:00
|
|
|
}
|
|
|
|
|
2007-03-18 16:20:38 +01:00
|
|
|
- (void) setHasStartDate: (BOOL) newHasStartDate
|
|
|
|
{
|
|
|
|
hasStartDate = newHasStartDate;
|
|
|
|
}
|
|
|
|
|
|
|
|
- (BOOL) hasStartDate
|
2006-10-18 16:42:44 +02:00
|
|
|
{
|
2007-03-18 16:20:38 +01:00
|
|
|
return hasStartDate;
|
|
|
|
}
|
|
|
|
|
|
|
|
- (BOOL) startDateDisabled
|
|
|
|
{
|
|
|
|
return !hasStartDate;
|
|
|
|
}
|
|
|
|
|
|
|
|
- (void) setTaskDueDate: (NSCalendarDate *) newTaskDueDate
|
|
|
|
{
|
|
|
|
ASSIGN (taskDueDate, newTaskDueDate);
|
2006-10-11 20:15:29 +02:00
|
|
|
}
|
|
|
|
|
2006-10-18 16:42:44 +02:00
|
|
|
- (NSCalendarDate *) taskDueDate
|
|
|
|
{
|
2007-03-18 16:20:38 +01:00
|
|
|
return taskDueDate;
|
|
|
|
}
|
|
|
|
|
|
|
|
- (void) setHasDueDate: (BOOL) newHasDueDate
|
|
|
|
{
|
|
|
|
hasDueDate = newHasDueDate;
|
2006-10-11 20:15:29 +02:00
|
|
|
}
|
|
|
|
|
2007-03-18 16:20:38 +01:00
|
|
|
- (BOOL) hasDueDate
|
|
|
|
{
|
|
|
|
return hasDueDate;
|
|
|
|
}
|
2006-10-11 20:15:29 +02:00
|
|
|
|
2007-03-18 16:20:38 +01:00
|
|
|
- (BOOL) dueDateDisabled
|
2006-10-11 20:15:29 +02:00
|
|
|
{
|
2007-03-18 16:20:38 +01:00
|
|
|
return !hasDueDate;
|
|
|
|
}
|
2006-10-11 20:15:29 +02:00
|
|
|
|
2007-03-18 16:20:38 +01:00
|
|
|
- (NSArray *) statusList
|
2006-10-12 18:42:59 +02:00
|
|
|
{
|
2007-03-18 16:20:38 +01:00
|
|
|
static NSArray *statusItems = nil;
|
2006-10-12 18:42:59 +02:00
|
|
|
|
2007-03-18 16:20:38 +01:00
|
|
|
if (!statusItems)
|
2006-11-07 17:27:46 +01:00
|
|
|
{
|
2007-03-18 16:20:38 +01:00
|
|
|
statusItems = [NSArray arrayWithObjects: @"NEEDS-ACTION",
|
|
|
|
@"IN-PROCESS",
|
|
|
|
@"COMPLETED",
|
|
|
|
@"CANCELLED",
|
|
|
|
nil];
|
|
|
|
[statusItems retain];
|
2006-11-07 17:27:46 +01:00
|
|
|
}
|
|
|
|
|
2007-03-18 16:20:38 +01:00
|
|
|
return statusItems;
|
2006-10-11 20:15:29 +02:00
|
|
|
}
|
|
|
|
|
2007-03-18 16:20:38 +01:00
|
|
|
- (NSString *) itemStatusText
|
2006-10-12 18:42:59 +02:00
|
|
|
{
|
2007-03-18 16:20:38 +01:00
|
|
|
return [self labelForKey: [NSString stringWithFormat: @"status_%@", item]];
|
2006-10-11 20:15:29 +02:00
|
|
|
}
|
|
|
|
|
2007-03-18 16:20:38 +01:00
|
|
|
- (void) setItem: (NSString *) newItem
|
2006-10-11 20:15:29 +02:00
|
|
|
{
|
2007-03-18 16:20:38 +01:00
|
|
|
item = newItem;
|
|
|
|
}
|
2006-10-11 20:15:29 +02:00
|
|
|
|
2007-03-18 16:20:38 +01:00
|
|
|
- (NSString *) item
|
|
|
|
{
|
|
|
|
return item;
|
|
|
|
}
|
2006-10-11 20:15:29 +02:00
|
|
|
|
2007-03-18 16:20:38 +01:00
|
|
|
- (NSString *) status
|
|
|
|
{
|
|
|
|
return status;
|
2006-10-11 20:15:29 +02:00
|
|
|
}
|
|
|
|
|
2007-03-18 16:20:38 +01:00
|
|
|
- (void) setStatus: (NSString *) newStatus
|
|
|
|
{
|
|
|
|
status = newStatus;
|
2006-10-11 20:15:29 +02:00
|
|
|
}
|
|
|
|
|
2007-03-18 16:20:38 +01:00
|
|
|
- (void) setStatusDate: (NSCalendarDate *) newStatusDate
|
2006-10-11 20:15:29 +02:00
|
|
|
{
|
2007-03-18 16:20:38 +01:00
|
|
|
ASSIGN (statusDate, newStatusDate);
|
2006-10-11 20:15:29 +02:00
|
|
|
}
|
|
|
|
|
2007-03-18 16:20:38 +01:00
|
|
|
- (NSCalendarDate *) statusDate
|
|
|
|
{
|
|
|
|
return statusDate;
|
|
|
|
}
|
2006-10-11 20:15:29 +02:00
|
|
|
|
2007-03-18 16:20:38 +01:00
|
|
|
- (BOOL) statusDateDisabled
|
|
|
|
{
|
|
|
|
return ![status isEqualToString: @"COMPLETED"];
|
|
|
|
}
|
2006-10-11 20:15:29 +02:00
|
|
|
|
2007-03-18 16:20:38 +01:00
|
|
|
- (BOOL) statusPercentDisabled
|
|
|
|
{
|
|
|
|
return ([status length] == 0
|
|
|
|
|| [status isEqualToString: @"CANCELLED"]);
|
2006-10-11 20:15:29 +02:00
|
|
|
}
|
|
|
|
|
2007-03-18 16:20:38 +01:00
|
|
|
- (void) setStatusPercent: (NSString *) newStatusPercent
|
2006-10-19 16:40:24 +02:00
|
|
|
{
|
2007-03-18 16:20:38 +01:00
|
|
|
ASSIGN (statusPercent, newStatusPercent);
|
2006-10-19 16:40:24 +02:00
|
|
|
}
|
|
|
|
|
2007-03-18 16:20:38 +01:00
|
|
|
- (NSString *) statusPercent
|
2006-10-19 16:40:24 +02:00
|
|
|
{
|
2007-03-18 16:20:38 +01:00
|
|
|
return statusPercent;
|
2006-10-19 16:40:24 +02:00
|
|
|
}
|
|
|
|
|
2007-03-18 16:20:38 +01:00
|
|
|
/* actions */
|
|
|
|
- (NSCalendarDate *) newStartDate
|
2006-10-19 16:40:24 +02:00
|
|
|
{
|
2007-03-18 16:20:38 +01:00
|
|
|
NSCalendarDate *newStartDate, *now;
|
2007-04-11 21:08:58 +02:00
|
|
|
NSTimeZone *timeZone;
|
2008-07-18 21:25:26 +02:00
|
|
|
SOGoUser *user;
|
|
|
|
int hour;
|
|
|
|
unsigned int uStart, uEnd;
|
2007-03-18 16:20:38 +01:00
|
|
|
|
|
|
|
newStartDate = [self selectedDate];
|
2008-07-18 21:25:26 +02:00
|
|
|
if (![[self queryParameterForKey: @"hm"] length])
|
2007-03-18 16:20:38 +01:00
|
|
|
{
|
|
|
|
now = [NSCalendarDate calendarDate];
|
2008-07-18 21:25:26 +02:00
|
|
|
timeZone = [[context activeUser] timeZone];
|
2007-04-11 21:08:58 +02:00
|
|
|
[now setTimeZone: timeZone];
|
2008-07-18 21:25:26 +02:00
|
|
|
|
|
|
|
user = [context activeUser];
|
|
|
|
uStart = [user dayStartHour];
|
2007-03-18 16:20:38 +01:00
|
|
|
if ([now isDateOnSameDay: newStartDate])
|
|
|
|
{
|
2008-07-18 21:25:26 +02:00
|
|
|
uEnd = [user dayEndHour];
|
2007-03-18 16:20:38 +01:00
|
|
|
hour = [now hourOfDay];
|
2008-07-18 21:25:26 +02:00
|
|
|
if (hour < uStart)
|
|
|
|
newStartDate = [now hour: uStart minute: 0];
|
|
|
|
else if (hour > uEnd)
|
|
|
|
newStartDate = [[now tomorrow] hour: uStart minute: 0];
|
2007-03-18 16:20:38 +01:00
|
|
|
else
|
|
|
|
newStartDate = now;
|
|
|
|
}
|
|
|
|
else
|
2008-07-18 21:25:26 +02:00
|
|
|
newStartDate = [newStartDate hour: uStart minute: 0];
|
2007-03-18 16:20:38 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
return newStartDate;
|
2006-10-19 16:40:24 +02:00
|
|
|
}
|
|
|
|
|
2007-03-18 16:20:38 +01:00
|
|
|
- (id <WOActionResults>) defaultAction
|
2006-10-19 16:40:24 +02:00
|
|
|
{
|
2007-03-18 16:20:38 +01:00
|
|
|
NSCalendarDate *startDate, *dueDate;
|
|
|
|
NSString *duration;
|
|
|
|
unsigned int minutes;
|
|
|
|
|
2007-11-26 18:40:44 +01:00
|
|
|
[self todo];
|
2007-03-18 16:20:38 +01:00
|
|
|
if (todo)
|
|
|
|
{
|
|
|
|
startDate = [todo startDate];
|
|
|
|
dueDate = [todo due];
|
|
|
|
hasStartDate = (startDate != nil);
|
|
|
|
hasDueDate = (dueDate != nil);
|
|
|
|
ASSIGN (status, [todo status]);
|
|
|
|
if ([status isEqualToString: @"COMPLETED"])
|
|
|
|
ASSIGN (statusDate, [todo completed]);
|
|
|
|
else
|
|
|
|
ASSIGN (statusDate, [self newStartDate]);
|
|
|
|
ASSIGN (statusPercent, [todo percentComplete]);
|
|
|
|
}
|
|
|
|
else
|
|
|
|
{
|
|
|
|
startDate = [self newStartDate];
|
|
|
|
duration = [self queryParameterForKey:@"dur"];
|
|
|
|
if ([duration length] > 0)
|
|
|
|
minutes = [duration intValue];
|
|
|
|
else
|
|
|
|
minutes = 60;
|
|
|
|
dueDate = [startDate dateByAddingYears: 0 months: 0 days: 0
|
|
|
|
hours: 0 minutes: minutes seconds: 0];
|
|
|
|
hasStartDate = NO;
|
|
|
|
hasDueDate = NO;
|
|
|
|
ASSIGN (statusDate, [self newStartDate]);
|
|
|
|
ASSIGN (status, @"");
|
|
|
|
ASSIGN (statusPercent, @"");
|
|
|
|
}
|
|
|
|
|
|
|
|
ASSIGN (taskStartDate, startDate);
|
|
|
|
ASSIGN (taskDueDate, dueDate);
|
|
|
|
|
|
|
|
/* here comes the code for initializing repeat, reminder and isAllDay... */
|
|
|
|
|
|
|
|
return self;
|
2006-10-19 16:40:24 +02:00
|
|
|
}
|
|
|
|
|
2007-03-18 16:20:38 +01:00
|
|
|
- (id <WOActionResults>) newAction
|
2006-10-19 16:40:24 +02:00
|
|
|
{
|
2007-03-18 16:20:38 +01:00
|
|
|
NSString *objectId, *method, *uri;
|
|
|
|
id <WOActionResults> result;
|
2007-09-15 00:01:02 +02:00
|
|
|
SOGoAppointmentFolder *co;
|
2007-03-18 16:20:38 +01:00
|
|
|
|
2007-09-15 00:01:02 +02:00
|
|
|
co = [self clientObject];
|
|
|
|
objectId = [co globallyUniqueObjectId];
|
2007-03-18 16:20:38 +01:00
|
|
|
if ([objectId length] > 0)
|
|
|
|
{
|
2007-12-05 23:29:50 +01:00
|
|
|
method = [NSString stringWithFormat:@"%@/%@.ics/editAsTask",
|
2007-09-15 00:01:02 +02:00
|
|
|
[co soURL], objectId];
|
2007-03-18 16:20:38 +01:00
|
|
|
uri = [self completeHrefForMethod: method];
|
|
|
|
result = [self redirectToLocation: uri];
|
|
|
|
}
|
|
|
|
else
|
|
|
|
result = [NSException exceptionWithHTTPStatus: 500 /* Internal Error */
|
|
|
|
reason: @"could not create a unique ID"];
|
|
|
|
|
|
|
|
return result;
|
2006-10-19 16:40:24 +02:00
|
|
|
}
|
|
|
|
|
2007-03-18 16:20:38 +01:00
|
|
|
- (id <WOActionResults>) saveAction
|
2006-10-19 16:40:24 +02:00
|
|
|
{
|
2007-11-18 11:16:25 +01:00
|
|
|
[[self clientObject] saveComponent: todo];
|
2007-03-18 16:20:38 +01:00
|
|
|
|
|
|
|
return [self jsCloseWithRefreshMethod: @"refreshTasks()"];
|
2006-10-19 16:40:24 +02:00
|
|
|
}
|
|
|
|
|
2007-11-18 11:16:25 +01:00
|
|
|
// - (id <WOActionResults>) saveAction
|
|
|
|
// {
|
|
|
|
// SOGoTaskObject *clientObject;
|
|
|
|
// NSString *iCalString;
|
|
|
|
|
|
|
|
// clientObject = [self clientObject];
|
|
|
|
// iCalString = [[clientObject calendar: NO secure: NO] versitString];
|
|
|
|
// [clientObject saveContentString: iCalString];
|
|
|
|
|
|
|
|
// return [self jsCloseWithRefreshMethod: @"refreshTasks()"];
|
|
|
|
// }
|
|
|
|
|
2007-03-18 16:20:38 +01:00
|
|
|
- (BOOL) shouldTakeValuesFromRequest: (WORequest *) request
|
|
|
|
inContext: (WOContext*) context
|
2006-10-19 16:40:24 +02:00
|
|
|
{
|
2007-08-24 00:13:27 +02:00
|
|
|
NSString *actionName;
|
|
|
|
|
|
|
|
actionName = [[request requestHandlerPath] lastPathComponent];
|
|
|
|
|
2008-07-17 23:12:43 +02:00
|
|
|
return ([[self clientObject] conformsToProtocol: @protocol (SOGoComponentOccurence)]
|
2007-08-24 00:13:27 +02:00
|
|
|
&& [actionName hasPrefix: @"save"]);
|
2006-10-19 16:40:24 +02:00
|
|
|
}
|
|
|
|
|
2007-03-18 16:20:38 +01:00
|
|
|
- (void) takeValuesFromRequest: (WORequest *) _rq
|
|
|
|
inContext: (WOContext *) _ctx
|
2006-10-19 16:40:24 +02:00
|
|
|
{
|
2007-11-26 18:40:44 +01:00
|
|
|
[self todo];
|
2007-03-18 16:20:38 +01:00
|
|
|
|
|
|
|
[super takeValuesFromRequest: _rq inContext: _ctx];
|
|
|
|
|
|
|
|
if (hasStartDate)
|
|
|
|
[todo setStartDate: taskStartDate];
|
2007-07-10 16:19:02 +02:00
|
|
|
else
|
|
|
|
[todo setStartDate: nil];
|
|
|
|
|
2007-03-18 16:20:38 +01:00
|
|
|
if (hasDueDate)
|
|
|
|
[todo setDue: taskDueDate];
|
2007-07-10 16:19:02 +02:00
|
|
|
else
|
|
|
|
[todo setDue: nil];
|
|
|
|
|
2007-03-18 16:20:38 +01:00
|
|
|
if ([status isEqualToString: @"COMPLETED"])
|
|
|
|
[todo setCompleted: statusDate];
|
|
|
|
else
|
|
|
|
[todo setCompleted: nil];
|
|
|
|
if ([status length] > 0)
|
|
|
|
{
|
|
|
|
[todo setStatus: status];
|
|
|
|
[todo setPercentComplete: statusPercent];
|
|
|
|
}
|
|
|
|
else
|
|
|
|
{
|
|
|
|
[todo setStatus: @""];
|
|
|
|
[todo setPercentComplete: @""];
|
|
|
|
}
|
2006-10-19 16:40:24 +02:00
|
|
|
}
|
|
|
|
|
2007-03-19 16:37:37 +01:00
|
|
|
// TODO: add tentatively
|
|
|
|
|
2007-11-19 16:40:22 +01:00
|
|
|
// - (id) acceptOrDeclineAction: (BOOL) _accept
|
|
|
|
// {
|
|
|
|
// [[self clientObject] changeParticipationStatus:
|
|
|
|
// _accept ? @"ACCEPTED" : @"DECLINED"];
|
2007-03-19 16:37:37 +01:00
|
|
|
|
2007-11-19 16:40:22 +01:00
|
|
|
// return self;
|
|
|
|
// }
|
2007-03-19 16:37:37 +01:00
|
|
|
|
2007-11-19 16:40:22 +01:00
|
|
|
// - (id) acceptAction
|
|
|
|
// {
|
|
|
|
// return [self acceptOrDeclineAction: YES];
|
|
|
|
// }
|
2007-03-18 20:19:44 +01:00
|
|
|
|
2007-11-19 16:40:22 +01:00
|
|
|
// - (id) declineAction
|
|
|
|
// {
|
|
|
|
// return [self acceptOrDeclineAction: NO];
|
|
|
|
// }
|
2007-03-18 20:19:44 +01:00
|
|
|
|
2007-03-19 16:37:37 +01:00
|
|
|
- (id) changeStatusAction
|
2007-03-18 20:19:44 +01:00
|
|
|
{
|
2007-11-19 20:17:44 +01:00
|
|
|
NSString *newStatus;
|
2007-03-19 16:37:37 +01:00
|
|
|
|
2007-11-26 18:40:44 +01:00
|
|
|
[self todo];
|
2007-03-19 16:37:37 +01:00
|
|
|
if (todo)
|
|
|
|
{
|
|
|
|
newStatus = [self queryParameterForKey: @"status"];
|
|
|
|
if ([newStatus intValue])
|
|
|
|
[todo setCompleted: [NSCalendarDate date]];
|
|
|
|
else
|
|
|
|
{
|
|
|
|
[todo setCompleted: nil];
|
2007-03-23 18:41:39 +01:00
|
|
|
[todo setPercentComplete: @"0"];
|
2007-03-19 16:37:37 +01:00
|
|
|
[todo setStatus: @"IN-PROCESS"];
|
|
|
|
}
|
2007-11-26 18:40:44 +01:00
|
|
|
[[self clientObject] saveComponent: todo];
|
2007-03-19 16:37:37 +01:00
|
|
|
}
|
2007-03-18 20:19:44 +01:00
|
|
|
|
2007-11-19 20:17:44 +01:00
|
|
|
return [self responseWith204];
|
2007-03-18 20:19:44 +01:00
|
|
|
}
|
|
|
|
|
2007-03-18 16:20:38 +01:00
|
|
|
@end
|