mirror of
https://github.com/inverse-inc/sogo.git
synced 2026-08-29 02:07:36 +00:00
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:
@@ -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"]);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user