Commit 940bc32a authored by Yoshinori Okuji's avatar Yoshinori Okuji

Initial import.


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@1108 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 2d7bb923
## Script (Python) "BusinessTemplate_build"
##bind container=container
##bind context=context
##bind namespace=
##bind script=script
##bind subpath=traverse_subpath
##parameters=form_id=''
##title=Build a business template
##
REQUEST=context.REQUEST
context.build()
ret_url = context.absolute_url() + '/' + form_id
qs = '?portal_status_message=Built.'
return REQUEST.RESPONSE.redirect( ret_url + qs )
## Script (Python) "BusinessTemplate_export"
##bind container=container
##bind context=context
##bind namespace=
##bind script=script
##bind subpath=traverse_subpath
##parameters=form_id='', toxml=0
##title=Export a business template
##
REQUEST=context.REQUEST
RESPONSE=REQUEST.RESPONSE
context.build()
s = context.portal_templates.manage_exportObject(id=context.getId(), toxml=toxml, download=1,
REQUEST=REQUEST, RESPONSE=RESPONSE)
return s
## Script (Python) "BusinessTemplate_save"
##bind container=container
##bind context=context
##bind namespace=
##bind script=script
##bind subpath=traverse_subpath
##parameters=form_id='', toxml=0
##title=Save a business template
##
REQUEST=context.REQUEST
f = context.portal_templates.save(context, toxml=toxml)
ret_url = context.absolute_url() + '/' + form_id
qs = '?portal_status_message=Saved+in+%s+.' % f
return REQUEST.RESPONSE.redirect( ret_url + qs )
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