Commit b705495d authored by Tomáš Peterka's avatar Tomáš Peterka Committed by Tomáš Peterka

[erp5_core] Bug hunt: logs and stale parameter

parent 9c87cb58
...@@ -19,7 +19,7 @@ Format of Action returned by getFilteredActions['workflow'] = [{ ...@@ -19,7 +19,7 @@ Format of Action returned by getFilteredActions['workflow'] = [{
""" """
action_tool = context.getPortalObject().portal_actions action_tool = context.getPortalObject().portal_actions
id_form_dict = dict() id_form_dict = dict()
context.log("called with form_id {}, query {}, workflow_action {}".format(form_id, query, workflow_action))
for result in context.Base_searchUsingFormIdAndQuery(form_id, query): for result in context.Base_searchUsingFormIdAndQuery(form_id, query):
for action in action_tool.listFilteredActionsFor(result.getObject()).get('workflow', []): for action in action_tool.listFilteredActionsFor(result.getObject()).get('workflow', []):
id_form_dict[action['id']] = action['url'].rsplit('/', 1)[1].split('?')[0] id_form_dict[action['id']] = action['url'].rsplit('/', 1)[1].split('?')[0]
......
...@@ -276,7 +276,7 @@ ...@@ -276,7 +276,7 @@
<dictionary> <dictionary>
<item> <item>
<key> <string>_text</string> </key> <key> <string>_text</string> </key>
<value> <string>python: here.Base_getListbox(form_id=request.get(\'form_id\')).getId()</string> </value> <value> <string>python: here.Base_getListbox(request.get(\'form_id\')).getId()</string> </value>
</item> </item>
</dictionary> </dictionary>
</pickle> </pickle>
......
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