Commit d96e0444 authored by Aurel's avatar Aurel

xml changes + script fix

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@11118 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent b9bb8861
...@@ -542,6 +542,9 @@ ...@@ -542,6 +542,9 @@
<name>Manage Groups</name> <name>Manage Groups</name>
<role>Manager</role> <role>Manager</role>
</permission> </permission>
<permission type='list'>
<name>Manage Selenium test cases</name>
</permission>
<permission type='tuple'> <permission type='tuple'>
<name>Manage Transient Object Container</name> <name>Manage Transient Object Container</name>
<role>Manager</role> <role>Manager</role>
......
...@@ -527,6 +527,9 @@ ...@@ -527,6 +527,9 @@
<permission type='tuple'> <permission type='tuple'>
<name>Manage Groups</name> <name>Manage Groups</name>
</permission> </permission>
<permission type='list'>
<name>Manage Selenium test cases</name>
</permission>
<permission type='tuple'> <permission type='tuple'>
<name>Manage Transient Object Container</name> <name>Manage Transient Object Container</name>
<role>Manager</role> <role>Manager</role>
......
...@@ -543,6 +543,9 @@ ...@@ -543,6 +543,9 @@
<name>Manage Groups</name> <name>Manage Groups</name>
<role>Manager</role> <role>Manager</role>
</permission> </permission>
<permission type='list'>
<name>Manage Selenium test cases</name>
</permission>
<permission type='tuple'> <permission type='tuple'>
<name>Manage Transient Object Container</name> <name>Manage Transient Object Container</name>
<role>Manager</role> <role>Manager</role>
......
...@@ -542,6 +542,9 @@ ...@@ -542,6 +542,9 @@
<name>Manage Groups</name> <name>Manage Groups</name>
<role>Manager</role> <role>Manager</role>
</permission> </permission>
<permission type='list'>
<name>Manage Selenium test cases</name>
</permission>
<permission type='tuple'> <permission type='tuple'>
<name>Manage Transient Object Container</name> <name>Manage Transient Object Container</name>
<role>Manager</role> <role>Manager</role>
......
...@@ -543,6 +543,9 @@ ...@@ -543,6 +543,9 @@
<name>Manage Groups</name> <name>Manage Groups</name>
<role>Manager</role> <role>Manager</role>
</permission> </permission>
<permission type='list'>
<name>Manage Selenium test cases</name>
</permission>
<permission type='tuple'> <permission type='tuple'>
<name>Manage Transient Object Container</name> <name>Manage Transient Object Container</name>
<role>Manager</role> <role>Manager</role>
......
...@@ -543,6 +543,9 @@ ...@@ -543,6 +543,9 @@
<name>Manage Groups</name> <name>Manage Groups</name>
<role>Manager</role> <role>Manager</role>
</permission> </permission>
<permission type='list'>
<name>Manage Selenium test cases</name>
</permission>
<permission type='tuple'> <permission type='tuple'>
<name>Manage Transient Object Container</name> <name>Manage Transient Object Container</name>
<role>Manager</role> <role>Manager</role>
......
...@@ -546,6 +546,9 @@ ...@@ -546,6 +546,9 @@
<name>Manage Groups</name> <name>Manage Groups</name>
<role>Manager</role> <role>Manager</role>
</permission> </permission>
<permission type='list'>
<name>Manage Selenium test cases</name>
</permission>
<permission type='tuple'> <permission type='tuple'>
<name>Manage Transient Object Container</name> <name>Manage Transient Object Container</name>
<role>Manager</role> <role>Manager</role>
......
...@@ -391,6 +391,9 @@ ...@@ -391,6 +391,9 @@
<permission type='list'> <permission type='list'>
<name>Manage Groups</name> <name>Manage Groups</name>
</permission> </permission>
<permission type='list'>
<name>Manage Selenium test cases</name>
</permission>
<permission type='list'> <permission type='list'>
<name>Manage Transient Object Container</name> <name>Manage Transient Object Container</name>
</permission> </permission>
......
...@@ -546,6 +546,9 @@ ...@@ -546,6 +546,9 @@
<name>Manage Groups</name> <name>Manage Groups</name>
<role>Manager</role> <role>Manager</role>
</permission> </permission>
<permission type='list'>
<name>Manage Selenium test cases</name>
</permission>
<permission type='tuple'> <permission type='tuple'>
<name>Manage Transient Object Container</name> <name>Manage Transient Object Container</name>
<role>Manager</role> <role>Manager</role>
......
...@@ -72,6 +72,9 @@ ...@@ -72,6 +72,9 @@
# get the list of movement we need to create\n # get the list of movement we need to create\n
\n \n
portal = context.getPortalObject()\n
N_ = portal.Base_translateString\n
\n
# First call the first scripts wich check many things\n # First call the first scripts wich check many things\n
error_value = context.CheckDelivery_generateCheckDetailInputDialog(\n error_value = context.CheckDelivery_generateCheckDetailInputDialog(\n
listbox=listbox,batch_mode=1,**kw)\n listbox=listbox,batch_mode=1,**kw)\n
...@@ -144,11 +147,11 @@ for line in listbox:\n ...@@ -144,11 +147,11 @@ for line in listbox:\n
\n \n
\n \n
request = context.REQUEST\n request = context.REQUEST\n
message = "No%%20Lines%%20Created"\n message = N_("No+Lines+Created.")\n
if number_of_line_created>0:\n if number_of_line_created>0:\n
message = "Lines%%20Created"\n message = N_("Lines+Created.")\n
redirect_url = \'%s/view?%s\' % ( context.absolute_url()\n redirect_url = \'%s/view?%s\' % ( context.absolute_url()\n
, \'portal_status_message=%s%%20Created\' % message\n , \'portal_status_message=%s\' % message\n
)\n )\n
request[ \'RESPONSE\' ].redirect( redirect_url )\n request[ \'RESPONSE\' ].redirect( redirect_url )\n
...@@ -217,9 +220,11 @@ request[ \'RESPONSE\' ].redirect( redirect_url )\n ...@@ -217,9 +220,11 @@ request[ \'RESPONSE\' ].redirect( redirect_url )\n
<tuple> <tuple>
<string>listbox</string> <string>listbox</string>
<string>kw</string> <string>kw</string>
<string>_apply_</string>
<string>_getattr_</string> <string>_getattr_</string>
<string>context</string> <string>context</string>
<string>portal</string>
<string>N_</string>
<string>_apply_</string>
<string>error_value</string> <string>error_value</string>
<string>request</string> <string>request</string>
<string>None</string> <string>None</string>
......
...@@ -452,7 +452,7 @@ ...@@ -452,7 +452,7 @@
</item> </item>
<item> <item>
<key> <string>list_action</string> </key> <key> <string>list_action</string> </key>
<value> <string>StopPaymentModule_viewStopPaymentDeliveryList</string> </value> <value> <string>StopPaymentModule_viewStopPaymentList</string> </value>
</item> </item>
<item> <item>
<key> <string>list_method</string> </key> <key> <string>list_method</string> </key>
......
...@@ -153,6 +153,8 @@ elif len(result) == 1:\n ...@@ -153,6 +153,8 @@ elif len(result) == 1:\n
msg = Message(domain=\'ui\', message=\'The check has been stopped.\')\n msg = Message(domain=\'ui\', message=\'The check has been stopped.\')\n
elif state == \'delivered\':\n elif state == \'delivered\':\n
msg = Message(domain=\'ui\', message=\'The check has already been cashed.\')\n msg = Message(domain=\'ui\', message=\'The check has already been cashed.\')\n
elif state == \'stopped\':\n
msg = Message(domain=\'ui\', message=\'The check is stopped.\')\n
raise ValidationFailed, (msg,)\n raise ValidationFailed, (msg,)\n
else:\n else:\n
msg = Message(domain=\'ui\', message=\'Duplicate checks for the same check number\')\n msg = Message(domain=\'ui\', message=\'Duplicate checks for the same check number\')\n
......
...@@ -114,7 +114,7 @@ for line in line_list:\n ...@@ -114,7 +114,7 @@ for line in line_list:\n
reference_range_max = str(int(float(reference_range_min)) + int(check_quantity)-1)\n reference_range_max = str(int(float(reference_range_min)) + int(check_quantity)-1)\n
item.setReferenceRangeMax(reference_range_max)\n item.setReferenceRangeMax(reference_range_max)\n
item.setTitle(\'%s - %s\' % (reference_range_min, reference_range_max))\n item.setTitle(\'%s - %s\' % (reference_range_min, reference_range_max))\n
reference_range_min = reference_range_max\n reference_range_min = str(int(reference_range_max) + 1)\n
item.setCheckAmount(check_amount)\n item.setCheckAmount(check_amount)\n
else:\n else:\n
item.setReference(reference_range_min)\n item.setReference(reference_range_min)\n
......
...@@ -34,7 +34,7 @@ ...@@ -34,7 +34,7 @@
</item> </item>
<item> <item>
<key> <string>title</string> </key> <key> <string>title</string> </key>
<value> <string>Canceled</string> </value> <value> <string>Cancelled</string> </value>
</item> </item>
<item> <item>
<key> <string>transitions</string> </key> <key> <string>transitions</string> </key>
...@@ -42,6 +42,12 @@ ...@@ -42,6 +42,12 @@
<tuple/> <tuple/>
</value> </value>
</item> </item>
<item>
<key> <string>type_list</string> </key>
<value>
<tuple/>
</value>
</item>
</dictionary> </dictionary>
</pickle> </pickle>
</record> </record>
......
32 39
\ 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