From 949c5044713643cc489ab9c5fed6d653b0572b17 Mon Sep 17 00:00:00 2001 From: Thierry Brettnacher <tb@nexedi.com> Date: Fri, 23 Jan 2004 15:08:16 +0000 Subject: [PATCH] new git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@270 20353a03-c40f-0410-a6d1-a30d3c3de9de --- .../skins/coramy_erp5/Folder_createModule.py | 23 +++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100755 product/Coramy/skins/coramy_erp5/Folder_createModule.py diff --git a/product/Coramy/skins/coramy_erp5/Folder_createModule.py b/product/Coramy/skins/coramy_erp5/Folder_createModule.py new file mode 100755 index 0000000000..b9bef6d673 --- /dev/null +++ b/product/Coramy/skins/coramy_erp5/Folder_createModule.py @@ -0,0 +1,23 @@ +## 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 ) -- 2.30.9