From: znek Date: Sat, 14 Aug 2004 18:46:42 +0000 (+0000) Subject: fixes X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b0a6366873a6d5b770a3cf70ab12165f543d0b4d;p=scalable-opengroupware.org fixes git-svn-id: http://svn.opengroupware.org/SOGo/trunk@214 d1b88da0-ebda-0310-925b-ed51d893ca5b --- diff --git a/SOGo/UI/Scheduler/ChangeLog b/SOGo/UI/Scheduler/ChangeLog index a90e2abf..a2e32b27 100644 --- a/SOGo/UI/Scheduler/ChangeLog +++ b/SOGo/UI/Scheduler/ChangeLog @@ -1,3 +1,8 @@ +2004-08-14 Marcus Mueller + + * UIxAppointmentEditor.m: Changed "X-OGo-RESOURCE" into + "NON-PARTICIPANT" (v0.9.36) + 2004-08-14 Marcus Mueller * UIxAppointmentView.[h,m,wox], UIxAppointmentEditor.[h,m,wox]: diff --git a/SOGo/UI/Scheduler/UIxAppointmentEditor.m b/SOGo/UI/Scheduler/UIxAppointmentEditor.m index 7f4e6619..b3f85406 100644 --- a/SOGo/UI/Scheduler/UIxAppointmentEditor.m +++ b/SOGo/UI/Scheduler/UIxAppointmentEditor.m @@ -339,7 +339,7 @@ /* see RFC2445, sect. 4.2.16 for details */ if(_isResource) { - [p setRole:@"X-OGo-RESOURCE"]; + [p setRole:@"NON-PARTICIPANT"]; } else { [p setRole:@"REQ-PARTICIPANT"]; diff --git a/SOGo/UI/Scheduler/Version b/SOGo/UI/Scheduler/Version index cd172534..4d40cd2f 100644 --- a/SOGo/UI/Scheduler/Version +++ b/SOGo/UI/Scheduler/Version @@ -1,6 +1,6 @@ # $Id$ -SUBMINOR_VERSION:=35 +SUBMINOR_VERSION:=36 # v0.9.31 requires libWEExtensions v4.2.52 # v0.9.29 requires libWEExtensions v4.2.51 diff --git a/SOGoLogic/ChangeLog b/SOGoLogic/ChangeLog index f332091b..d59fe804 100644 --- a/SOGoLogic/ChangeLog +++ b/SOGoLogic/ChangeLog @@ -1,3 +1,11 @@ +2004-08-14 Marcus Mueller + + * UIxAppointmentEditor.m: changed filter. The iCalSaxDriver doesn't + push X-* properties through, so I reverted the X-OGo-RESOURCE prop. + to NON-PARTICIPANT. To me it appears to conform to the specs. Also + the iCalSaxDriver truncates these to NON-PART - I don't know why it + does so. (v0.9.5) + 2004-08-14 Marcus Mueller * v0.9.4 diff --git a/SOGoLogic/SOGoAppointment.m b/SOGoLogic/SOGoAppointment.m index 419aa0bb..d176dd1b 100644 --- a/SOGoLogic/SOGoAppointment.m +++ b/SOGoLogic/SOGoAppointment.m @@ -316,15 +316,29 @@ static SaxObjectDecoder *sax = nil; } - (NSArray *)_filteredAttendeesThinkingOfPersons:(BOOL)_persons { - EOQualifier *q; - NSString *qs; - - if(_persons) - qs = @"role != X-OGo-RESOURCE"; - else - qs = @"role = X-OGo-RESOURCE"; - q = [EOQualifier qualifierWithQualifierFormat:qs]; - return [[self attendees] filteredArrayUsingQualifier:q]; + NSArray *list; + NSMutableArray *filtered; + unsigned i, count; + + list = [self attendees]; + count = [list count]; + filtered = [[NSMutableArray alloc] initWithCapacity:count]; + for(i = 0; i < count; i++) { + iCalPerson *p; + NSString *role; + + p = [list objectAtIndex:i]; + role = [p role]; + if(_persons) { + if(role == nil || ![role isEqualToString:@"NON-PART"]) + [filtered addObject:p]; + } + else { + if([role isEqualToString:@"NON-PART"]) + [filtered addObject:p]; + } + } + return [filtered autorelease]; } @end diff --git a/SOGoLogic/Version b/SOGoLogic/Version index 749d66dc..6b227f7e 100644 --- a/SOGoLogic/Version +++ b/SOGoLogic/Version @@ -1,3 +1,3 @@ # $Id$ -SUBMINOR_VERSION:=4 +SUBMINOR_VERSION:=5