From 34619a5eda0886ec89db282943e9aa99c99f4515 Mon Sep 17 00:00:00 2001 From: Wolfgang Sourdeau Date: Thu, 20 Mar 2008 13:40:22 +0000 Subject: [PATCH] Monotone-Parent: 67c89629b9aa3e1a71a6d431d2827a73f678c9b7 Monotone-Revision: 0536d34a9212fa68a10f5a18d95efd01e0c46aac Monotone-Author: wsourdeau@inverse.ca Monotone-Date: 2008-03-20T13:40:22 Monotone-Branch: ca.inverse.sogo --- .../Appointments/SOGoAppointmentFolder.m | 33 ++++++------------- 1 file changed, 10 insertions(+), 23 deletions(-) diff --git a/SoObjects/Appointments/SOGoAppointmentFolder.m b/SoObjects/Appointments/SOGoAppointmentFolder.m index 2e81c029b..86ab24ed6 100644 --- a/SoObjects/Appointments/SOGoAppointmentFolder.m +++ b/SoObjects/Appointments/SOGoAppointmentFolder.m @@ -157,17 +157,14 @@ static NSNumber *sharedYes = nil; NSArray *properties; unsigned int count, max; - [r appendContentString: @""]; - [r appendContentString: @""]; + [r appendContentString: @""]; properties = [propstat objectForKey: @"properties"]; max = [properties count]; for (count = 0; count < max; count++) [r appendContentString: [properties objectAtIndex: count]]; - [r appendContentString: @""]; - [r appendContentString: @""]; + [r appendContentString: @""]; [r appendContentString: [propstat objectForKey: @"status"]]; - [r appendContentString: @""]; - [r appendContentString: @""]; + [r appendContentString: @""]; } #warning we should use the EOFetchSpecification for that!!! (see doPROPFIND:) @@ -191,12 +188,8 @@ static NSNumber *sharedYes = nil; { methodSel = NSSelectorFromString(methodName); if ([sogoObject respondsToSelector: methodSel]) - { - value = [[sogoObject performSelector: methodSel] - stringByEscapingXMLString]; - if (![value length]) - NSLog (@"value empty?"); - } + value = [[sogoObject performSelector: methodSel] + stringByEscapingXMLString]; } return value; @@ -334,31 +327,27 @@ static NSNumber *sharedYes = nil; NSEnumerator *propstats; NSDictionary *propstat; - [r appendContentString: @" \r\n"]; - [r appendContentString: @" "]; + [r appendContentString: @""]; [r appendContentString: baseURL]; if (![baseURL hasSuffix: @"/"]) [r appendContentString: @"/"]; [r appendContentString: [object objectForKey: @"c_name"]]; - [r appendContentString: @"\r\n"]; + [r appendContentString: @""]; propstats = [[self _propstats: properties ofObject: object] objectEnumerator]; while ((propstat = [propstats nextObject])) [self _appendPropstat: propstat toResponse: r]; - [r appendContentString: @" \r\n"]; + [r appendContentString: @"\r\n"]; } - (void) appendMissingObjectRef: (NSString *) href toComplexResponse: (WOResponse *) r { - [r appendContentString: @" \r\n"]; - [r appendContentString: @" "]; + [r appendContentString: @""]; [r appendContentString: href]; - [r appendContentString: @"\r\n"]; - [r appendContentString: @" HTTP/1.1 404 Not Found\r\n"]; - [r appendContentString: @" \r\n"]; + [r appendContentString: @"HTTP/1.1 404 Not Found\r\n"]; } - (void) _appendTimeRange: (id ) timeRangeElement @@ -506,8 +495,6 @@ static NSNumber *sharedYes = nil; { urlComponents = [componentURLPath componentsSeparatedByString: @"/"]; cName = [urlComponents objectAtIndex: [urlComponents count] - 1]; - if ([cName isEqualToString: @"2AAC-4E8AB421-1-B767AA80"]) - NSLog (@"breakpoint..."); component = [NSDictionary dictionaryWithObject: cName forKey: @"c_name"]; }