Commit 231f9fa9 authored by Yoshinori Okuji's avatar Yoshinori Okuji

Renamed from doAction.py to Base_doAction.py.


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@1538 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 05f1e838
## Script (Python) "Base_doAction"
##bind container=container
##bind context=context
##bind namespace=
##bind script=script
##bind subpath=traverse_subpath
##parameters=action_select, form_id='', selection_index='', selection_name='', uids=None, listbox_uid=None, md5_object_uid_list=None, is_list=0
##title=
##
is_list = int(is_list)
doAction = action_select.split()
doAction0 = doAction[0]
Base_doAction = action_select.split()
doAction0 = Base_doAction[0]
request = context.REQUEST
# First, update checked uids if uids is not None.
......@@ -11,7 +18,7 @@ context.portal_selections.updateSelectionCheckedUidList(selection_name, uids=uid
# If this is an object, a workflow or a folder, then jump to that view
if doAction0 in ('object', 'workflow', 'folder'):
uri = ' '.join(doAction[1:])
uri = ' '.join(Base_doAction[1:])
if uri.find('?') >= 0:
uri += '&'
else:
......@@ -25,7 +32,7 @@ if doAction0 in ('object', 'workflow', 'folder'):
# Otherwise, check if this is an automatic menu (add)
elif doAction0 == 'add':
new_id = context.generateNewId()
context.portal_types.constructContent(type_name=' '.join(doAction[1:]),
context.portal_types.constructContent(type_name=' '.join(Base_doAction[1:]),
container=context,
id=str(new_id),
RESPONSE=request.RESPONSE)
......
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