AccountingTransactionModule_getDestinationSectionUrl.py 563 Bytes
Newer Older
Yoshinori Okuji's avatar
Yoshinori Okuji committed
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22
## Script (Python) "AccountingTransactionModule_getDestinationSectionUrl"
##bind container=container
##bind context=context
##bind namespace=
##bind script=script
##bind subpath=traverse_subpath
##parameters=brain=None, selection=None, **kwd
##title=
##
from ZTUtils import make_query

index = selection.getIndex()
name = selection.getName()
object = brain.getObject()

url = object.getDestinationSectionValue().absolute_url()
method = 'Entity_viewAccountingTransactionList'
kw = { 
       'reset' : '1', 
     }

return url + '/' + method + '?' + make_query(kw)