Commit 063156a3 authored by Alexandre Boeglin's avatar Alexandre Boeglin

I previously forgot to commit this file, sorry.

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@8235 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 6c9f619c
...@@ -14,7 +14,9 @@ ...@@ -14,7 +14,9 @@
<dictionary> <dictionary>
<item> <item>
<key> <string>Python_magic</string> </key> <key> <string>Python_magic</string> </key>
<value> <string encoding="base64">O/INCg==</string> </value> <value>
<none/>
</value>
</item> </item>
<item> <item>
<key> <string>Script_magic</string> </key> <key> <string>Script_magic</string> </key>
...@@ -96,23 +98,25 @@ for workflow_item in workflow_item_list:\n ...@@ -96,23 +98,25 @@ for workflow_item in workflow_item_list:\n
key = key[len(compatibility_name):]\n key = key[len(compatibility_name):]\n
if key.endswith(\'state\'): \n if key.endswith(\'state\'): \n
key = \'state\'\n key = \'state\'\n
value = wf_states[value].title\n if display:\n
value = wf_states[value].title\n
else:\n
value = wf_states[value].id\n
if key == \'action\':\n if key == \'action\':\n
if value != \'\' and value is not None:\n if value != \'\' and value is not None:\n
if value == "\'edit\'":\n if value == "\'edit\'":\n
value = "edit"\n value = "edit"\n
value = wf_transitions[value].title or wf_transitions[value].actbox_name or value\n if display:\n
if key == \'error_message\' and not same_type(value, \'\'):\n value = wf_transitions[value].title or wf_transitions[value].actbox_name or value\n
# use of Message class\n else:\n
value = \'%s\' %value \n value = wf_transitions[value].id or wf_transitions[value].actbox_name or value\n
elif key == \'error_message\' and same_type(value, \'\'):\n if display:\n
# old message way\n if key == \'error_message\' and not same_type(value, \'\'):\n
value = context.Localizer.erp5_ui.gettext(value)\n value = \'%s\' %value\n
if same_type(value, \'\') and key != \'error_message\':\n elif key == \'error_message\' and same_type(value, \'\'):\n
value = context.Localizer.erp5_ui.gettext(value)\n value = context.Localizer.erp5_ui.gettext(value)\n
\n if same_type(value, \'\') and key != \'error_message\':\n
if same_type(value, \'\'):\n value = context.Localizer.erp5_ui.gettext(value)\n
value = context.Localizer.erp5_ui.gettext(value)\n
o.setProperty(key, value)\n o.setProperty(key, value)\n
result.append(o)\n result.append(o)\n
\n \n
...@@ -137,7 +141,7 @@ return result\n ...@@ -137,7 +141,7 @@ return result\n
</item> </item>
<item> <item>
<key> <string>_params</string> </key> <key> <string>_params</string> </key>
<value> <string>workflow_id, **kw</string> </value> <value> <string>workflow_id,display=1, **kw</string> </value>
</item> </item>
<item> <item>
<key> <string>_proxy_roles</string> </key> <key> <string>_proxy_roles</string> </key>
...@@ -175,13 +179,14 @@ return result\n ...@@ -175,13 +179,14 @@ return result\n
<dictionary> <dictionary>
<item> <item>
<key> <string>co_argcount</string> </key> <key> <string>co_argcount</string> </key>
<value> <int>1</int> </value> <value> <int>2</int> </value>
</item> </item>
<item> <item>
<key> <string>co_varnames</string> </key> <key> <string>co_varnames</string> </key>
<value> <value>
<tuple> <tuple>
<string>workflow_id</string> <string>workflow_id</string>
<string>display</string>
<string>kw</string> <string>kw</string>
<string>_getattr_</string> <string>_getattr_</string>
<string>context</string> <string>context</string>
...@@ -218,7 +223,9 @@ return result\n ...@@ -218,7 +223,9 @@ return result\n
<item> <item>
<key> <string>func_defaults</string> </key> <key> <string>func_defaults</string> </key>
<value> <value>
<none/> <tuple>
<int>1</int>
</tuple>
</value> </value>
</item> </item>
<item> <item>
......
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