Monotone-Parent: 188f677989080c34ae076500016b9830247f2cbe

Monotone-Revision: 20ca7f13f9a91f5f53ebdc147c167f8c3c8704d1

Monotone-Author: wsourdeau@inverse.ca
Monotone-Date: 2006-08-21T17:45:35
Monotone-Branch: ca.inverse.sogo
This commit is contained in:
Wolfgang Sourdeau
2006-08-21 17:45:35 +00:00
parent b1a76aa21a
commit 08b62198a4
4 changed files with 29 additions and 1 deletions

View File

@@ -1,5 +1,13 @@
2006-08-21 Wolfgang Sourdeau <wsourdeau@inverse.ca>
* UI/Contacts/UIxContactEditorBase.m: invokes
globallyUniqueObjectId on the clientobject's class instead of the
hardcoded "SOGoFolder".
* UI/Contacts/UIxContactFoldersView.m ([UIxContactFoldersView
-newAction]): redirect the "new" action to the personal (default)
contact folder.
* SoObjects/SOGo/SOGoObject.m ([SOGoObject
+objectWithName:inContainer:]): new constructor.

View File

@@ -299,7 +299,7 @@
*/
NSString *uri, *objectId, *nextMethod;
objectId = [NSClassFromString(@"SOGoContactFolder") globallyUniqueObjectId];
objectId = [[[self clientObject] class] globallyUniqueObjectId];
if ([objectId length] == 0) {
return [NSException exceptionWithHTTPStatus:500 /* Internal Error */
reason:@"could not create a unique ID"];

View File

@@ -38,6 +38,21 @@
return [self redirectToLocation: [folders defaultSourceName]];
}
- (id) newAction
{
SOGoContactFolders *folders;
NSString *url, *contactEmail;
folders = [self clientObject];
contactEmail = [self queryParameterForKey: @"contactEmail"];
url = [NSString stringWithFormat: @"%@/new?contactEmail=%@",
[folders defaultSourceName],
contactEmail];
return [self redirectToLocation: url];
}
- (id) selectAction
{
SOGoContactFolders *folders;

View File

@@ -14,6 +14,11 @@
protectedBy = "View";
pageName = "UIxContactFoldersView";
};
new = {
protectedBy = "View";
pageName = "UIxContactFoldersView";
actionName = "new";
};
select = {
protectedBy = "View";
pageName = "UIxContactFoldersView";