source: WAeUP_SRP/trunk/skins/waeup_utilities/create_configuration_file.py @ 4098

Last change on this file since 4098 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
Line 
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"""
12create Configuration File
13"""
14from urllib import urlencode
15
16mtool = context.portal_membership
17member = mtool.getAuthenticatedMember()
18member_id = str(member)
19import logging
20logger = logging.getLogger('Skins.create_configuration_file')
21
22wftool = context.portal_workflow
23campus_folder = context.portal_url.getPortalObject().campus
24campus_folder.invokeFactory('WAeUPConfiguration',"configuration")
25campus_folder.configuration.getContent().edit(mapping={'title': 'Configuration Parameters'})
26
Note: See TracBrowser for help on using the repository browser.