From ca57a6c158ad4ba13b6deadbc9ab7db6a2b58491 Mon Sep 17 00:00:00 2001 From: Wolfgang Sourdeau Date: Wed, 5 Dec 2007 22:29:50 +0000 Subject: [PATCH] Monotone-Parent: ab7765d8d9cabd9c3da98a32f5907faaf59a4e5b Monotone-Revision: 473e23aa8952f82b8ef8ebcb95fd3ad46226c3be Monotone-Author: wsourdeau@inverse.ca Monotone-Date: 2007-12-05T22:29:50 Monotone-Branch: ca.inverse.sogo --- ChangeLog | 9 +++++++++ UI/Contacts/UIxContactEditor.m | 3 ++- UI/Scheduler/UIxAppointmentEditor.m | 2 +- UI/Scheduler/UIxTaskEditor.m | 2 +- 4 files changed, 13 insertions(+), 3 deletions(-) diff --git a/ChangeLog b/ChangeLog index efbbf3bf9..af43fe950 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,14 @@ 2007-12-05 Wolfgang Sourdeau + * UI/Scheduler/UIxTaskEditor.m ([UIxTaskEditor -newAction]): + create task obejcts with the .ics extension. + + * UI/Scheduler/UIxAppointmentEditor.m ([UIxAppointmentEditor + -newAction]): create appointment objects with the .ics extension. + + * UI/Contacts/UIxContactEditor.m ([UIxContactEditor -newAction]): + create objects with the .vcf extension. + * Main/NSException+Stacktrace.m: added missing symbols from NSException.m and NSDebug.m (GNUstep). diff --git a/UI/Contacts/UIxContactEditor.m b/UI/Contacts/UIxContactEditor.m index f36e2bc85..7181f47a6 100644 --- a/UI/Contacts/UIxContactEditor.m +++ b/UI/Contacts/UIxContactEditor.m @@ -593,9 +593,10 @@ return [NSException exceptionWithHTTPStatus: 500 /* Internal Error */ reason: @"could not create a unique ID"]; - nextMethod = [NSString stringWithFormat: @"../%@/%@", + nextMethod = [NSString stringWithFormat: @"../%@.vcf/%@", objectId, [self editActionName]]; uri = [self _completeURIForMethod: nextMethod]; + return [self redirectToLocation: uri]; } diff --git a/UI/Scheduler/UIxAppointmentEditor.m b/UI/Scheduler/UIxAppointmentEditor.m index 911b2404a..cd5331e32 100644 --- a/UI/Scheduler/UIxAppointmentEditor.m +++ b/UI/Scheduler/UIxAppointmentEditor.m @@ -344,7 +344,7 @@ objectId = [co globallyUniqueObjectId]; if ([objectId length] > 0) { - method = [NSString stringWithFormat:@"%@/%@/editAsAppointment", + method = [NSString stringWithFormat:@"%@/%@.ics/editAsAppointment", [co soURL], objectId]; uri = [self completeHrefForMethod: method]; result = [self redirectToLocation: uri]; diff --git a/UI/Scheduler/UIxTaskEditor.m b/UI/Scheduler/UIxTaskEditor.m index cc0aac6e8..7ec0b0d40 100644 --- a/UI/Scheduler/UIxTaskEditor.m +++ b/UI/Scheduler/UIxTaskEditor.m @@ -338,7 +338,7 @@ objectId = [co globallyUniqueObjectId]; if ([objectId length] > 0) { - method = [NSString stringWithFormat:@"%@/%@/editAsTask", + method = [NSString stringWithFormat:@"%@/%@.ics/editAsTask", [co soURL], objectId]; uri = [self completeHrefForMethod: method]; result = [self redirectToLocation: uri];