Last change
on this file since 3963 was
3824,
checked in by Henrik Bettermann, 16 years ago
|
implement configuration object (step 1)
Configuration file must be created with create_configuration_file.py
|
File size:
758 bytes
|
Rev | Line | |
---|
[3824] | 1 | ## Script (Python) "create_configuration_file" |
---|
| 2 | ##bind container=container |
---|
| 3 | ##bind context=context |
---|
| 4 | ##bind namespace= |
---|
| 5 | ##bind script=script |
---|
| 6 | ##bind subpath=traverse_subpath |
---|
| 7 | ##parameters= |
---|
| 8 | ##title= |
---|
| 9 | ## |
---|
| 10 | # $Id: create_configuration_file.py 1504 2007-02-26 21:20:40Z henrik $ |
---|
| 11 | """ |
---|
| 12 | create Configuration File |
---|
| 13 | """ |
---|
| 14 | from urllib import urlencode |
---|
| 15 | |
---|
| 16 | mtool = context.portal_membership |
---|
| 17 | member = mtool.getAuthenticatedMember() |
---|
| 18 | member_id = str(member) |
---|
| 19 | import logging |
---|
| 20 | logger = logging.getLogger('Skins.create_configuration_file') |
---|
| 21 | |
---|
| 22 | wftool = context.portal_workflow |
---|
| 23 | campus_folder = context.portal_url.getPortalObject().campus |
---|
| 24 | campus_folder.invokeFactory('WAeUPConfiguration',"configuration") |
---|
| 25 | campus_folder.configuration.getContent().edit(mapping={'title': 'Configuration Parameters'}) |
---|
| 26 | |
---|
Note: See
TracBrowser for help on using the repository browser.