Commit 281c4969 authored by Aurel's avatar Aurel

remove log

fix action
add some params

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@18886 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 5532de06
...@@ -75,13 +75,13 @@ if reference is None:\n ...@@ -75,13 +75,13 @@ if reference is None:\n
message = Message(domain="ui", message="Please give a reference")\n message = Message(domain="ui", message="Please give a reference")\n
raise ValueError, message\n raise ValueError, message\n
\n \n
context.log(\'reference\',reference)\n #context.log(\'reference\',reference)\n
account_list = catalog(string_index=reference, portal_type=portal_type, validation_state=\'valid\')\n account_list = catalog(string_index=reference, portal_type=portal_type, validation_state=\'valid\')\n
context.log(\'sql src\',catalog(string_index=reference, portal_type=portal_type, validation_state=\'valid\',src__=1))\n # context.log(\'sql src\',catalog(string_index=reference, portal_type=portal_type, validation_state=\'valid\',src__=1))\n
context.log(\'len 1\',len(account_list))\n # context.log(\'len 1\',len(account_list))\n
if len(account_list) == 0:\n if len(account_list) == 0:\n
account_list = catalog(string_index="%%%s%%" % reference, portal_type=portal_type, validation_state=\'valid\')\n account_list = catalog(string_index="%%%s%%" % reference, portal_type=portal_type, validation_state=\'valid\')\n
context.log(\'len 2\',len(account_list))\n #context.log(\'len 2\',len(account_list))\n
if len(account_list) == 0:\n if len(account_list) == 0:\n
message = Message(domain="ui", message="No bank account have this reference")\n message = Message(domain="ui", message="No bank account have this reference")\n
raise ValueError, message\n raise ValueError, message\n
......
...@@ -102,6 +102,7 @@ for account_uid in account_uids:\n ...@@ -102,6 +102,7 @@ for account_uid in account_uids:\n
if parent_value.getPortalType() == \'Organisation\':\n if parent_value.getPortalType() == \'Organisation\':\n
acc_dict[\'activity\'] = parent_value.getActivity()\n acc_dict[\'activity\'] = parent_value.getActivity()\n
acc_dict[\'currency_title\'] = account.getPriceCurrencyTitle()\n acc_dict[\'currency_title\'] = account.getPriceCurrencyTitle()\n
acc_dict[\'bic_code\'] = account.getBicCode(None)\n
acc_dict[\'transaction_list\'] = []\n acc_dict[\'transaction_list\'] = []\n
\n \n
# Current inventory\n # Current inventory\n
......
...@@ -108,7 +108,7 @@ if found == 0:\n ...@@ -108,7 +108,7 @@ if found == 0:\n
</item> </item>
<item> <item>
<key> <string>_params</string> </key> <key> <string>_params</string> </key>
<value> <string>counter, simulation_state_list=None</string> </value> <value> <string>counter, simulation_state_list=None, site=None</string> </value>
</item> </item>
<item> <item>
<key> <string>_proxy_roles</string> </key> <key> <string>_proxy_roles</string> </key>
...@@ -134,7 +134,7 @@ if found == 0:\n ...@@ -134,7 +134,7 @@ if found == 0:\n
<dictionary> <dictionary>
<item> <item>
<key> <string>co_argcount</string> </key> <key> <string>co_argcount</string> </key>
<value> <int>2</int> </value> <value> <int>3</int> </value>
</item> </item>
<item> <item>
<key> <string>co_varnames</string> </key> <key> <string>co_varnames</string> </key>
...@@ -142,6 +142,7 @@ if found == 0:\n ...@@ -142,6 +142,7 @@ if found == 0:\n
<tuple> <tuple>
<string>counter</string> <string>counter</string>
<string>simulation_state_list</string> <string>simulation_state_list</string>
<string>site</string>
<string>Products.DCWorkflow.DCWorkflow</string> <string>Products.DCWorkflow.DCWorkflow</string>
<string>ValidationFailed</string> <string>ValidationFailed</string>
<string>Products.ERP5Type.Message</string> <string>Products.ERP5Type.Message</string>
...@@ -149,7 +150,6 @@ if found == 0:\n ...@@ -149,7 +150,6 @@ if found == 0:\n
<string>None</string> <string>None</string>
<string>_getattr_</string> <string>_getattr_</string>
<string>context</string> <string>context</string>
<string>site</string>
<string>append</string> <string>append</string>
<string>$append0</string> <string>$append0</string>
<string>_getiter_</string> <string>_getiter_</string>
...@@ -173,6 +173,7 @@ if found == 0:\n ...@@ -173,6 +173,7 @@ if found == 0:\n
<value> <value>
<tuple> <tuple>
<none/> <none/>
<none/>
</tuple> </tuple>
</value> </value>
</item> </item>
......
...@@ -25,7 +25,7 @@ ...@@ -25,7 +25,7 @@
</item> </item>
<item> <item>
<key> <string>actbox_url</string> </key> <key> <string>actbox_url</string> </key>
<value> <string>%(content_url)s/BaseWorkflow_viewWorkflowActionDialog?workflow_action=pause_action_action</string> </value> <value> <string>%(content_url)s/BaseWorkflow_viewWorkflowActionDialog?workflow_action=pause_action</string> </value>
</item> </item>
<item> <item>
<key> <string>after_script_name</string> </key> <key> <string>after_script_name</string> </key>
...@@ -67,11 +67,8 @@ ...@@ -67,11 +67,8 @@
<record id="2" aka="AAAAAAAAAAI="> <record id="2" aka="AAAAAAAAAAI=">
<pickle> <pickle>
<tuple> <tuple>
<tuple> <global name="Guard" module="Products.DCWorkflow.Guard"/>
<string>Products.DCWorkflow.Guard</string> <tuple/>
<string>Guard</string>
</tuple>
<none/>
</tuple> </tuple>
</pickle> </pickle>
<pickle> <pickle>
......
405 407
\ 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