Commit 949c5044 authored by Thierry's avatar Thierry

new


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@270 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 29e21d77
## Script (Python) "Folder_createModule"
##bind container=container
##bind context=context
##bind namespace=
##bind script=script
##bind subpath=traverse_subpath
##parameters=module_id='0', module_title='', module_type=''
##title=
##
request = context.REQUEST
module_title = module_title.replace('_',' ')
module_type = module_type.replace('_',' ')
context.portal_types.constructContent(type_name=module_type,
container = context,
title = module_title,
id = module_id)
redirect_url = '%s?%s' % ( context.absolute_url()+'/'+module_id
, 'portal_status_message=1+module+cr.'
)
request[ 'RESPONSE' ].redirect( redirect_url )
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment