Commit c531c9f6 authored by Yoshinori Okuji's avatar Yoshinori Okuji

Initial import.


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@1328 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent e73ae0ff
## Script (Python) "Base_redirect"
##bind container=container
##bind context=context
##bind namespace=
##bind script=script
##bind subpath=traverse_subpath
##parameters=relative_url=None
##title=
##
# You can use this script to jump to another module / document without making the URL longer.
# Like 'erp5/organisation/purchase_order/accounting/view'.
#
# Usage: .../Base_redirect?relative_url=purchase_order
#
# If you omit the parameter relative_url, this jumps to the portal (i.e. ERP5 Site).
request=context.REQUEST
if relative_url is None:
redirect_url = '%s/view' % (context.getPortalObject().absolute_url())
else:
redirect_url = '%s/%s/view' % (context.getPortalObject().absolute_url(), relative_url)
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