Monotone-Parent: 55c226ffd5db8ed7f07eb8591aded800a89418b2
Monotone-Revision: c3c980772004fa550702d469d6fbe729fd954f5d

Monotone-Author: wsourdeau@inverse.ca
Monotone-Date: 2012-02-20T22:25:49
Monotone-Branch: ca.inverse.sogo
This commit is contained in:
Wolfgang Sourdeau
2012-02-20 22:25:49 +00:00
parent 5e1a8b3b58
commit c8fbb0718c
28 changed files with 252 additions and 4 deletions
+20 -2
View File
@@ -167,7 +167,7 @@ iRANGE(2);
component = nil;
componentCalendar = nil;
[self setClassification: @"PUBLIC"];
classification = nil;
[self setIsCycleEndNever];
componentOwner = @"";
organizer = nil;
@@ -213,6 +213,7 @@ iRANGE(2);
[ownerAsAttendee release];
[comment release];
[priority release];
[classification release];
[categories release];
[cycle release];
[cycleEnd release];
@@ -612,10 +613,12 @@ iRANGE(2);
doing this... for example, when the clientObject is set */
- (void) setComponent: (iCalRepeatableEntityObject *) newComponent
{
SOGoObject *co;
SOGoCalendarComponent *co;
SOGoUserManager *um;
NSString *owner, *ownerEmail;
iCalRepeatableEntityObject *masterComponent;
SOGoUserDefaults *defaults;
NSString *tag;
if (!component)
{
@@ -630,6 +633,21 @@ iRANGE(2);
ASSIGN (comment, [component comment]);
ASSIGN (attachUrl, [[component attach] absoluteString]);
ASSIGN (classification, [component accessClass]);
if ([co isNew] && [classification length] == 0)
{
defaults = [[context activeUser] userDefaults];
tag = [co componentTag];
[classification release];
if ([tag isEqualToString: @"vevent"])
classification = [defaults calendarEventsDefaultClassification];
else
classification = [defaults calendarTasksDefaultClassification];
if ([classification length] == 0)
classification = @"PUBLIC";
[classification retain];
}
ASSIGN (priority, [component priority]);
ASSIGN (status, [component status]);
ASSIGN (categories, [component categories]);