Commit 9f1fa5f5 authored by Yoshinori Okuji's avatar Yoshinori Okuji

Renamed from base_list_dialog.py to Base_callListDialogMethod.py.


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@1529 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent b0458e6c
## Script (Python) "Base_callListDialogMethod"
##bind container=container
##bind context=context
##bind namespace=
##bind script=script
##bind subpath=traverse_subpath
##parameters=form_id,cancel_url,dialog_method,selection_name,dialog_id ##parameters=form_id,cancel_url,dialog_method,selection_name,dialog_id
##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
...@@ -10,26 +17,26 @@ from string import join ...@@ -10,26 +17,26 @@ from string import join
request=context.REQUEST request=context.REQUEST
#Exceptions for UI and Sort #Exceptions for UI and Sort
if dialog_method == 'base_list_ui': if dialog_method == 'Base_configureUI':
return context.base_list_ui(form_id=form_id, return context.Base_configureUI(form_id=form_id,
selection_name=selection_name, selection_name=selection_name,
field_columns=getattr(request,'field_columns'), field_columns=getattr(request,'field_columns'),
stat_columns=getattr(request,'stat_columns')) stat_columns=getattr(request,'stat_columns'))
if dialog_method == 'base_sort_on': if dialog_method == 'Base_configureSortOn':
return context.base_sort_on(form_id=form_id, return context.Base_configureSortOn(form_id=form_id,
selection_name=selection_name, selection_name=selection_name,
field_sort_on=getattr(request,'field_sort_on'), field_sort_on=getattr(request,'field_sort_on'),
field_sort_order=getattr(request,'field_sort_order')) field_sort_order=getattr(request,'field_sort_order'))
if dialog_method == 'update_relation': if dialog_method == 'Base_updateRelation':
return context.update_relation(form_id=form_id, return context.Base_updateRelation(form_id=form_id,
field_id=request.get('field_id'), field_id=request.get('field_id'),
selection_name=selection_name, selection_name=selection_name,
selection_index=request.get('selection_index'), selection_index=request.get('selection_index'),
object_uid=request.get('object_uid'), object_uid=request.get('object_uid'),
uids=request.get('uids'), uids=request.get('uids'),
listbox_uid=request.get('listbox_uid')) listbox_uid=request.get('listbox_uid'))
if dialog_method == 'base_create_relation': if dialog_method == 'Base_createRelation':
return context.base_create_relation(form_id=form_id, return context.Base_createRelation(form_id=form_id,
selection_name=selection_name, selection_name=selection_name,
selection_index=request.get('selection_index'), selection_index=request.get('selection_index'),
base_category=request.get('base_category'), base_category=request.get('base_category'),
...@@ -39,8 +46,8 @@ if dialog_method == 'base_create_relation': ...@@ -39,8 +46,8 @@ if dialog_method == 'base_create_relation':
dialog_id=dialog_id, dialog_id=dialog_id,
portal_type=request.get('portal_type'), portal_type=request.get('portal_type'),
return_url=request.get('cancel_url')) return_url=request.get('cancel_url'))
if dialog_method == 'folder_delete': if dialog_method == 'Folder_delete':
return context.folder_delete(form_id=form_id, return context.Folder_delete(form_id=form_id,
field_id=request.get('field_id'), field_id=request.get('field_id'),
selection_name=selection_name, selection_name=selection_name,
selection_index=request.get('selection_index'), selection_index=request.get('selection_index'),
...@@ -49,7 +56,6 @@ if dialog_method == 'folder_delete': ...@@ -49,7 +56,6 @@ if dialog_method == 'folder_delete':
md5_object_uid_list=request.get('md5_object_uid_list'), md5_object_uid_list=request.get('md5_object_uid_list'),
cancel_url=request.get('cancel_url')) cancel_url=request.get('cancel_url'))
try: try:
# Validate the form # Validate the form
form = getattr(context,dialog_id) form = getattr(context,dialog_id)
......
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