Commit 5e85a221 authored by Jérome Perrin's avatar Jérome Perrin

sometimes we do not have object_view actions

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@37427 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent c2463ea5
...@@ -55,7 +55,7 @@ ...@@ -55,7 +55,7 @@
<key> <string>_body</string> </key> <key> <string>_body</string> </key>
<value> <string># Return the current action to know which tab is selected\n <value> <string># Return the current action to know which tab is selected\n
\n \n
for action in actions[\'object_view\']:\n for action in actions.get(\'object_view\', []):\n
if current_url == action[\'url\'].split(\'?\')[0]:\n if current_url == action[\'url\'].split(\'?\')[0]:\n
return action\n return action\n
</string> </value> </string> </value>
...@@ -97,9 +97,9 @@ for action in actions[\'object_view\']:\n ...@@ -97,9 +97,9 @@ for action in actions[\'object_view\']:\n
<string>current_url</string> <string>current_url</string>
<string>actions</string> <string>actions</string>
<string>_getiter_</string> <string>_getiter_</string>
<string>_getitem_</string>
<string>action</string>
<string>_getattr_</string> <string>_getattr_</string>
<string>action</string>
<string>_getitem_</string>
</tuple> </tuple>
</value> </value>
</item> </item>
......
1642 1643
\ No newline at end of file \ No newline at end of file
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