Monotone-Parent: 52de90085e2d18ded0d0c315e7148e1c72feb785

Monotone-Revision: 99d14630f5294d40da6680a39d69b6f1b7853938

Monotone-Author: wsourdeau@inverse.ca
Monotone-Date: 2008-07-17T21:12:43
Monotone-Branch: ca.inverse.sogo
This commit is contained in:
Wolfgang Sourdeau
2008-07-17 21:12:43 +00:00
parent e1beed1ba0
commit bdc02c26ab
46 changed files with 1595 additions and 521 deletions
+8 -3
View File
@@ -38,6 +38,8 @@
#import <SoObjects/Appointments/SOGoAppointmentFolder.h>
#import <SoObjects/Appointments/SOGoAppointmentObject.h>
#import <SoObjects/Appointments/SOGoComponentOccurence.h>
#import "UIxComponentEditor.h"
#import "UIxAppointmentEditor.h"
@@ -71,7 +73,7 @@
{
if (!event)
{
event = (iCalEvent *) [[self clientObject] component: YES secure: YES];
event = (iCalEvent *) [[self clientObject] occurence];
[event retain];
}
@@ -165,9 +167,12 @@
NSCalendarDate *startDate, *endDate;
NSString *duration;
unsigned int minutes;
SOGoObject <SOGoComponentOccurence> *co;
[self event];
if ([[self clientObject] isNew])
co = [self clientObject];
if ([co isNew]
&& [co isKindOfClass: [SOGoCalendarComponent class]])
{
startDate = [self newStartDate];
duration = [self queryParameterForKey:@"dur"];
@@ -231,7 +236,7 @@
actionName = [[request requestHandlerPath] lastPathComponent];
return ([[self clientObject] isKindOfClass: [SOGoAppointmentObject class]]
return ([[self clientObject] conformsToProtocol: @protocol (SOGoComponentOccurence)]
&& [actionName hasPrefix: @"save"]);
}