Monotone-Parent: 0737b1db6b347f529b14555dcbe67d99f357aaf6

Monotone-Revision: be54fe500757d5b3077ad04c8c9a43cf4088ec61

Monotone-Author: wsourdeau@inverse.ca
Monotone-Date: 2007-04-25T15:14:40
Monotone-Branch: ca.inverse.sogo
This commit is contained in:
Wolfgang Sourdeau
2007-04-25 15:14:40 +00:00
parent 941f725eb0
commit b13636f385
2 changed files with 13 additions and 7 deletions

View File

@@ -1,5 +1,10 @@
2007-04-25 Wolfgang Sourdeau <wsourdeau@inverse.ca>
* SoObjects/Appointments/SOGoAppointmentFolder.m
([SOGoAppointmentFolder -davResourceType]): fixed a problem with
our double declaration where the resulting XML would be screwed.
There is only one collection per namespace.
* SoObjects/SOGo/NSCalendarDate+SOGo.m ([NSCalendarDate
rfc822DateString]): new method that returns a string conform to
rfc 822 and suitable for email headers.

View File

@@ -421,17 +421,18 @@ static NSNumber *sharedYes = nil;
- (NSArray *) davResourceType
{
static NSArray *colType = nil;
NSArray *cdCol;
NSMutableArray *gdCol;
NSArray *cdCol, *gdRT, *gdVEventCol, *gdVTodoCol;
if (!colType)
{
gdCol = [NSMutableArray new];
[gdCol addObjectsFromArray: [self groupDavResourceType]];
[gdCol addObject: XMLNS_GROUPDAV];
gdRT = [self groupDavResourceType];
gdVEventCol = [NSArray arrayWithObjects: [gdRT objectAtIndex: 0],
XMLNS_GROUPDAV, nil];
gdVTodoCol = [NSArray arrayWithObjects: [gdRT objectAtIndex: 1],
XMLNS_GROUPDAV, nil];
cdCol = [NSArray arrayWithObjects: @"calendar", XMLNS_CALDAV, nil];
colType = [NSArray arrayWithObjects: @"collection", cdCol, gdCol, nil];
[gdCol release];
colType = [NSArray arrayWithObjects: @"collection", cdCol,
gdVEventCol, gdVTodoCol, nil];
[colType retain];
}