Monotone-Parent: e2a484f8ca3b601174d5551461162d0e9e880aa5

Monotone-Revision: c4b57bd1cf368f4918027a1afcabf6f86bae1404

Monotone-Author: wsourdeau@inverse.ca
Monotone-Date: 2006-08-03T21:32:53
Monotone-Branch: ca.inverse.sogo
maint-2.0.2
Wolfgang Sourdeau 2006-08-03 21:32:53 +00:00
parent 19e7a2f2cd
commit 9e0cdaabe0
2 changed files with 23 additions and 8 deletions

View File

@ -183,8 +183,8 @@
return YES;
}
- (id<WOActionResults>)defaultAction {
// TODO: very similiar to apt-editor (apt editor would need to use std names
- (void) initSnapshot
{
NSString *c;
/* load iCalendar file */
@ -195,7 +195,12 @@
[self setContentString:c];
[self loadValuesFromContentString:c];
}
- (id<WOActionResults>)defaultAction {
// TODO: very similiar to apt-editor (apt editor would need to use std names
[self initSnapshot];
return self;
}
@ -203,6 +208,7 @@
/* this is overridden in the mail based contacts UI to redirect to tb.edit */
return @"";
}
- (NSString *)editActionName {
/* this is overridden in the mail based contacts UI to redirect to tb.edit */
return @"edit";
@ -259,9 +265,18 @@
@"the specified object"];
}
- (id)testAction {
[self logWithFormat:@"test ..."];
return self;
- (id) writeAction
{
NSString *email, *url;
[self initSnapshot];
email = [snapshot objectForKey: @"mail"];
url = ((email)
? [NSString stringWithFormat: @"Mail/compose?mailto=%@",
email]
: @"Mail/compose");
return
[self redirectToLocation: [self relativePathToUserFolderSubPath: url]];
}
- (id)newAction {

View File

@ -58,10 +58,10 @@
pageName = "UIxContactEditor";
actionName = "save";
};
test = {
write = {
protectedBy = "View";
pageName = "UIxContactEditor";
actionName = "test";
actionName = "write";
};
};
};