From 9e89cddf11ee73f2b7537427f7e06d3c5e92af15 Mon Sep 17 00:00:00 2001 From: Wolfgang Sourdeau Date: Tue, 29 Jan 2008 20:48:39 +0000 Subject: [PATCH] Monotone-Parent: ad3f1bd9ed29f2b9c3b6a653aa3f856435440133 Monotone-Revision: a10c7483ee3fa379bb760ab378a895c024c299a3 Monotone-Author: wsourdeau@inverse.ca Monotone-Date: 2008-01-29T20:48:39 Monotone-Branch: ca.inverse.sogo --- ChangeLog | 10 ++++++++++ SoObjects/SOGo/SOGoGCSFolder.m | 13 +++++++++++++ SoObjects/SOGo/SOGoParentFolder.m | 7 +++++++ 3 files changed, 30 insertions(+) diff --git a/ChangeLog b/ChangeLog index 89bf1d669..b492fefdf 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,13 @@ +2008-01-29 Wolfgang Sourdeau + + * SoObjects/SOGo/SOGoGCSFolder.m ([SOGoGCSFolder + -davSetProperties:setPropsremovePropertiesNamed:removedPropsinContext:localContext]): + new method that takes the displayname into account. + + * SoObjects/SOGo/SOGoParentFolder.m ([SOGoParentFolder + -davCreateCollection:pathInfoinContext:localContext]): new method + that acts as a proxy to newFolderWithName:andNameInContainer:. + 2008-01-28 Wolfgang Sourdeau * UI/Scheduler/UIxComponentEditor.m ([UIxComponentEditor diff --git a/SoObjects/SOGo/SOGoGCSFolder.m b/SoObjects/SOGo/SOGoGCSFolder.m index b1f0e6df4..7b8732397 100644 --- a/SoObjects/SOGo/SOGoGCSFolder.m +++ b/SoObjects/SOGo/SOGoGCSFolder.m @@ -503,6 +503,19 @@ static BOOL sendFolderAdvisories = NO; return [self _subscribe: NO inContext: localContext]; } +- (NSException *) davSetProperties: (NSDictionary *) setProps + removePropertiesNamed: (NSDictionary *) removedProps + inContext: (WOContext *) localContext +{ + NSString *newDisplayName; + + newDisplayName = [setProps objectForKey: @"davDisplayName"]; + if ([newDisplayName length]) + [self renameTo: newDisplayName]; + + return nil; +} + /* acls as a container */ - (NSArray *) aclUsersForObjectAtPath: (NSArray *) objectPathArray; diff --git a/SoObjects/SOGo/SOGoParentFolder.m b/SoObjects/SOGo/SOGoParentFolder.m index fb27adcb3..c7291168a 100644 --- a/SoObjects/SOGo/SOGoParentFolder.m +++ b/SoObjects/SOGo/SOGoParentFolder.m @@ -314,4 +314,11 @@ static SoSecurityManager *sm = nil; sortedArrayUsingSelector: @selector (compare:)]; } +- (NSException *) davCreateCollection: (NSString *) pathInfo + inContext: (WOContext *) localContext +{ + return [self newFolderWithName: pathInfo + andNameInContainer: pathInfo]; +} + @end