Commit 54472840 authored by Jean-Paul Smets's avatar Jean-Paul Smets

Support for real URLs in list action

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@18868 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 7fda8a0c
......@@ -791,7 +791,13 @@ class ListBoxRenderer:
def getListActionUrl(self):
"""Return the URL of the list action.
"""
list_action_part_list = [self.getContext().absolute_url(), '/', self.field.get_value('list_action')]
list_action = self.field.get_value('list_action')
if '/' in list_action:
# This is a 'real' URL
return list_action
else:
# This is only a method name. Let us build the URL
list_action_part_list = [self.getContext().absolute_url(), '/', list_action]
if '?' in list_action_part_list[-1]:
list_action_part_list.append('&reset=1')
else:
......
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