Last change
on this file since 3846 was
953,
checked in by Henrik Bettermann, 18 years ago
|
member directory acl permission, schema and layouts changed
not yet optimized
|
File size:
677 bytes
|
Rev | Line | |
---|
[953] | 1 | ##parameters=datastructure |
---|
| 2 | """ |
---|
| 3 | Do the necessary rendering or redirection after an entry has been |
---|
| 4 | successfully created and filled with the initial values by the user. |
---|
| 5 | |
---|
| 6 | The context is the directory. |
---|
| 7 | |
---|
| 8 | May return a rendered document, or do a redirect. |
---|
| 9 | """ |
---|
| 10 | |
---|
| 11 | from urllib import urlencode |
---|
| 12 | |
---|
| 13 | dirname = context.getId() |
---|
| 14 | id_field = context.id_field |
---|
| 15 | id = datastructure.getDataModel()[id_field] |
---|
| 16 | |
---|
| 17 | portal_url = context.portal_url() |
---|
| 18 | args = urlencode({'dirname': dirname, |
---|
| 19 | 'id': id, |
---|
| 20 | 'portal_status_message': 'psm_entry_created', |
---|
| 21 | }) |
---|
| 22 | action_path = 'member_edit_form?'+args |
---|
| 23 | context.REQUEST.RESPONSE.redirect('%s/%s' % (portal_url, action_path)) |
---|
Note: See
TracBrowser for help on using the repository browser.