Monotone-Parent: 9bd3efbf4f547d824498717029033f28648869c2

Monotone-Revision: eb77dd31037c7227b99cc8b6f61c1385e1bf0468

Monotone-Author: wsourdeau@inverse.ca
Monotone-Date: 2007-10-22T21:52:13
Monotone-Branch: ca.inverse.sogo
This commit is contained in:
Wolfgang Sourdeau committed 2007-10-22 21:52:13 +00:00
1 parent 3752adf2c6
commit b65772bbff
1 file changed
+11 -12
+11 -12
View File
@@ -259,23 +259,24 @@ static NSString *defaultUserID = @"<default>";
- (void) sendFolderAdvisoryTemplate: (NSString *) template - (void) sendFolderAdvisoryTemplate: (NSString *) template
{ {
NSString *language, *pageName; NSString *pageName;
SOGoUser *user; SOGoUser *user;
SOGoFolderAdvisory *page; SOGoFolderAdvisory *page;
WOApplication *app;
user = [SOGoUser userWithLogin: [[context activeUser] login] roles: nil]; user = [context activeUser];
language = [user language];
pageName = [NSString stringWithFormat: @"SOGoFolder%@%@Advisory", pageName = [NSString stringWithFormat: @"SOGoFolder%@%@Advisory",
language, template]; [user language], template];
app = [WOApplication application]; page = [[WOApplication application] pageWithName: pageName
page = [app pageWithName: pageName inContext: context]; inContext: context];
[page setFolderObject: self]; [page setFolderObject: self];
[page setRecipientUID: [[context activeUser] login]]; [page setRecipientUID: [user login]];
[page send]; [page send];
} }
// if (!result) [self sendFolderAdvisoryTemplate: @"Addition"];
- (BOOL) create - (BOOL) create
{ {
NSException *result; NSException *result;
@@ -284,8 +285,6 @@ static NSString *defaultUserID = @"<default>";
withName: displayName withName: displayName
atPath: ocsPath]; atPath: ocsPath];
if (!result) [self sendFolderAdvisoryTemplate: @"Addition"];
return (result == nil); return (result == nil);
} }
@@ -302,11 +301,11 @@ static NSString *defaultUserID = @"<default>";
else else
error = [[self folderManager] deleteFolderAtPath: ocsPath]; error = [[self folderManager] deleteFolderAtPath: ocsPath];
if (!error) [self sendFolderAdvisoryTemplate: @"Removal"];
return error; return error;
} }
// if (!error) [self sendFolderAdvisoryTemplate: @"Removal"];
- (void) renameTo: (NSString *) newName - (void) renameTo: (NSString *) newName
{ {
GCSChannelManager *cm; GCSChannelManager *cm;