source: WAeUP_SRP/branches/regebro-noskins/skins/waeup_directory/member_created.py @ 12663

Last change on this file since 12663 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
Line 
1##parameters=datastructure
2"""
3Do the necessary rendering or redirection after an entry has been
4successfully created and filled with the initial values by the user.
5
6The context is the directory.
7
8May return a rendered document, or do a redirect.
9"""
10
11from urllib import urlencode
12
13dirname = context.getId()
14id_field = context.id_field
15id = datastructure.getDataModel()[id_field]
16
17portal_url = context.portal_url()
18args = urlencode({'dirname': dirname,
19                  'id': id,
20                  'portal_status_message': 'psm_entry_created',
21                  })
22action_path = 'member_edit_form?'+args
23context.REQUEST.RESPONSE.redirect('%s/%s' % (portal_url, action_path))
Note: See TracBrowser for help on using the repository browser.