Commit 52958d8a authored by Sebastien Robin's avatar Sebastien Robin

check if list_form_id is not a string


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@644 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent afcae68c
...@@ -14,6 +14,13 @@ request=context.REQUEST ...@@ -14,6 +14,13 @@ request=context.REQUEST
module_name = context.getId() module_name = context.getId()
# Required because sometimes list_form_id is not a string
if isinstance(list_form_id,tuple):
list_form_id = list_form_id[0]
# The type list is not working with isinstance, I have do do this bad hack
if hasattr(list_form_id,'sort'):
list_form_id = list_form_id[0]
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