Commit 7a89f98c authored by Yoshinori Okuji's avatar Yoshinori Okuji

Renamed from base_jump_relation.py to Base_jumpToRelatedDocument.py.


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@1527 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 5cd823cf
## Script (Python) "Base_jumpToRelatedDocument"
##bind container=container
##bind context=context
##bind namespace=
##bind script=script
##bind subpath=traverse_subpath
##parameters=form_id, field_id, selection_index=0, selection_name='' ##parameters=form_id, field_id, selection_index=0, selection_name=''
##title=
##
# Updates attributes of an Zope document # Updates attributes of an Zope document
# which is in a class inheriting from ERP5 Base # which is in a class inheriting from ERP5 Base
...@@ -26,7 +33,7 @@ if len(jump_reference_list)==1: ...@@ -26,7 +33,7 @@ if len(jump_reference_list)==1:
else: else:
selection_uid_list = map(lambda x:x.getUid(),jump_reference_list) selection_uid_list = map(lambda x:x.getUid(),jump_reference_list)
kw = {'uid': selection_uid_list} kw = {'uid': selection_uid_list}
context.portal_selections.setSelectionParamsFor('Base_jumpRelationList',kw) context.portal_selections.setSelectionParamsFor('Base_jumpToRelatedObjectList',kw)
request.set('object_uid', context.getUid()) request.set('object_uid', context.getUid())
request.set('uids', selection_uid_list) request.set('uids', selection_uid_list)
return context.Base_jumpRelationList(uids=selection_uid_list, REQUEST=request) return context.Base_jumpToRelatedObjectList(uids=selection_uid_list, REQUEST=request)
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