(fix) removed old code
parent
b0ab9ab1b8
commit
0f86d78f22
|
@ -592,75 +592,6 @@
|
||||||
return [self responseWithStatus: 200 andJSONRepresentation: data];
|
return [self responseWithStatus: 200 andJSONRepresentation: data];
|
||||||
}
|
}
|
||||||
|
|
||||||
// - (BOOL) shouldTakeValuesFromRequest: (WORequest *) request
|
|
||||||
// inContext: (WOContext*) context
|
|
||||||
// {
|
|
||||||
// NSString *actionName;
|
|
||||||
|
|
||||||
// actionName = [[request requestHandlerPath] lastPathComponent];
|
|
||||||
|
|
||||||
// return ([[self clientObject] conformsToProtocol: @protocol (SOGoComponentOccurence)]
|
|
||||||
// && [actionName hasPrefix: @"save"]);
|
|
||||||
// }
|
|
||||||
|
|
||||||
// - (void) takeValuesFromRequest: (WORequest *) _rq
|
|
||||||
// inContext: (WOContext *) _ctx
|
|
||||||
// {
|
|
||||||
// SOGoUserDefaults *ud;
|
|
||||||
// iCalTimeZone *tz;
|
|
||||||
// iCalToDo *todo;
|
|
||||||
|
|
||||||
// todo = [self todo];
|
|
||||||
|
|
||||||
// [super takeValuesFromRequest: _rq inContext: _ctx];
|
|
||||||
|
|
||||||
// if (hasStartDate)
|
|
||||||
// [todo setStartDate: taskStartDate];
|
|
||||||
// else
|
|
||||||
// {
|
|
||||||
// [todo setStartDate: nil];
|
|
||||||
// [todo removeAllAlarms];
|
|
||||||
// }
|
|
||||||
|
|
||||||
// if (hasDueDate)
|
|
||||||
// [todo setDue: taskDueDate];
|
|
||||||
// else
|
|
||||||
// [todo setDue: nil];
|
|
||||||
|
|
||||||
// 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: @""];
|
|
||||||
// }
|
|
||||||
|
|
||||||
// if ([[self clientObject] isNew])
|
|
||||||
// {
|
|
||||||
// ud = [[context activeUser] userDefaults];
|
|
||||||
// tz = [iCalTimeZone timeZoneForName: [ud timeZoneName]];
|
|
||||||
|
|
||||||
// if (hasStartDate || hasDueDate)
|
|
||||||
// {
|
|
||||||
// [[todo parent] addTimeZone: tz];
|
|
||||||
// }
|
|
||||||
|
|
||||||
// if (hasStartDate)
|
|
||||||
// [(iCalDateTime *)[todo uniqueChildWithTag: @"dtstart"] setTimeZone: tz];
|
|
||||||
|
|
||||||
// if (hasDueDate)
|
|
||||||
// [(iCalDateTime *)[todo uniqueChildWithTag: @"due"] setTimeZone: tz];
|
|
||||||
// }
|
|
||||||
|
|
||||||
// }
|
|
||||||
|
|
||||||
- (id) changeStatusAction
|
- (id) changeStatusAction
|
||||||
{
|
{
|
||||||
NSString *newStatus;
|
NSString *newStatus;
|
||||||
|
|
Loading…
Reference in New Issue