Monotone-Parent: ec8493cddd76f24d59a41d1da4982d89ecab0001

Monotone-Revision: 527c04f1467ba6a6e11ff578bd608677271dd0fb

Monotone-Author: wsourdeau@inverse.ca
Monotone-Date: 2009-06-09T20:00:28
Monotone-Branch: ca.inverse.sogo
This commit is contained in:
Wolfgang Sourdeau
2009-06-09 20:00:28 +00:00
parent 0287e9f3bd
commit c4e0db1427
3 changed files with 28 additions and 4 deletions

View File

@@ -1,3 +1,13 @@
2009-06-09 Wolfgang Sourdeau <wsourdeau@inverse.ca>
* SoObjects/Appointments/SOGoAppointmentFolder.m
(-freebusyResponseForRecipient:withUser:andCalendarData:): expose
the calendar-data as as !CDATA element.
* SoObjects/SOGo/SOGoWebDAVValue.m
(-asWebDavStringWithNamespaces): new overriden method to enable
the passing of unescapable strings.
2009-06-09 Francis Lachapelle <flachapelle@inverse.ca>
* SoObjects/Appointments/SOGoAppointmentFolder.m

View File

@@ -62,6 +62,7 @@
#import <SOGo/SOGoUser.h>
#import <SOGo/SOGoUserFolder.h>
#import <SOGo/SOGoWebDAVAclManager.h>
#import <SOGo/SOGoWebDAVValue.h>
#import "iCalEntityObject+SOGo.h"
#import "SOGoAppointmentObject.h"
@@ -2014,7 +2015,8 @@ firstInstanceCalendarDateRange: (NGCalendarDateRange *) fir
{
NSDictionary *response;
NSMutableArray *content;
NSString *calendarCData;
SOGoWebDAVValue *cdata;
NSString *escapedData;
content = [NSMutableArray new];
@@ -2023,9 +2025,13 @@ firstInstanceCalendarDateRange: (NGCalendarDateRange *) fir
{
[content addObject: davElementWithContent (@"request-status", XMLNS_CALDAV,
@"2.0;Success")];
calendarCData = [NSString stringWithFormat: @"<![CDATA[%@]]>", calendarData];
[content addObject: [davElementWithContent (@"calendar-data", XMLNS_CALDAV,
calendarCData) asWebDAVValue]];
escapedData = [[NSString stringWithFormat: @"<![CDATA[%@]]>",
calendarData]
stringByEscapingXMLString];
cdata = [SOGoWebDAVValue valueForObject: escapedData
attributes: nil];
[content addObject: davElementWithContent (@"calendar-data", XMLNS_CALDAV,
cdata)];
}
else
[content addObject:

View File

@@ -24,6 +24,8 @@
#import "SOGoWebDAVValue.h"
@class NSMutableDictionary;
@implementation SOGoWebDAVValue : SoWebDAVValue
- (NSString *) stringForTag: (NSString *) _key
@@ -34,4 +36,10 @@
return object;
}
/* maybe a bit hackish... the mechanism should be reviewed a little bit */
- (NSString *) asWebDavStringWithNamespaces: (NSMutableDictionary *) namespaces
{
return object;
}
@end