Monotone-Parent: 9014b61a856557f48bcdb06cd327ce958a4d98c7

Monotone-Revision: 14fb6c252ef1563d917c59f289ac3d06479a7eab

Monotone-Author: wsourdeau@inverse.ca
Monotone-Date: 2009-08-10T20:57:22
Monotone-Branch: ca.inverse.sogo
This commit is contained in:
Wolfgang Sourdeau
2009-08-10 20:57:22 +00:00
parent 87793cdb48
commit 89b67f8434
3 changed files with 22 additions and 0 deletions
+4
View File
@@ -6,6 +6,10 @@
2009-08-10 Wolfgang Sourdeau <wsourdeau@inverse.ca>
* SoObjects/Appointments/iCalEntityObject+SOGo.m
(-userAsParticipant): new method that returns the "PARTICIPANT"
entity of the SOGoUser passed as parameter, if found.
* Tests/webdavlib.py (WebDAVClient._prepare_headers): fixed a typo
causing the "depth" parameter to never be issued in query heades.
@@ -37,6 +37,8 @@ NSNumber *iCalDistantFutureNumber;
- (BOOL) userIsParticipant: (SOGoUser *) user;
- (BOOL) userIsOrganizer: (SOGoUser *) user;
- (iCalPerson *) userAsParticipant: (SOGoUser *) user;
- (NSArray *) attendeeUIDs;
- (BOOL) isStillRelevant;
@@ -96,6 +96,22 @@ _computeAllDayOffset()
return isParticipant;
}
- (iCalPerson *) userAsParticipant: (SOGoUser *) user
{
NSEnumerator *participants;
iCalPerson *currentParticipant, *userParticipant;
userParticipant = nil;
participants = [[self participants] objectEnumerator];
while (!userParticipant
&& (currentParticipant = [participants nextObject]))
if ([user hasEmail: [currentParticipant rfc822Email]])
userParticipant = currentParticipant;
return userParticipant;
}
- (BOOL) userIsOrganizer: (SOGoUser *) user
{
NSString *mail;