Commit c8c02db8 authored by Jérome Perrin's avatar Jérome Perrin

do something to prevent calling Delivery_confirm from the URL

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@24684 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 0058db6d
...@@ -55,6 +55,10 @@ ...@@ -55,6 +55,10 @@
<key> <string>_body</string> </key> <key> <string>_body</string> </key>
<value> <string>from Products.ERP5Type.Message import translateString\n <value> <string>from Products.ERP5Type.Message import translateString\n
\n \n
if REQUEST is not None:\n
from zExceptions import Unauthorized\n
raise Unauthorized(script.id)\n
\n
packing_list = context\n packing_list = context\n
\n \n
# Modify state\n # Modify state\n
...@@ -71,7 +75,7 @@ if packing_list_state == "draft":\n ...@@ -71,7 +75,7 @@ if packing_list_state == "draft":\n
</item> </item>
<item> <item>
<key> <string>_params</string> </key> <key> <string>_params</string> </key>
<value> <string>**kw</string> </value> <value> <string>REQUEST=None, **kw</string> </value>
</item> </item>
<item> <item>
<key> <string>errors</string> </key> <key> <string>errors</string> </key>
...@@ -91,18 +95,23 @@ if packing_list_state == "draft":\n ...@@ -91,18 +95,23 @@ if packing_list_state == "draft":\n
<dictionary> <dictionary>
<item> <item>
<key> <string>co_argcount</string> </key> <key> <string>co_argcount</string> </key>
<value> <int>0</int> </value> <value> <int>1</int> </value>
</item> </item>
<item> <item>
<key> <string>co_varnames</string> </key> <key> <string>co_varnames</string> </key>
<value> <value>
<tuple> <tuple>
<string>REQUEST</string>
<string>kw</string> <string>kw</string>
<string>Products.ERP5Type.Message</string> <string>Products.ERP5Type.Message</string>
<string>translateString</string> <string>translateString</string>
<string>None</string>
<string>zExceptions</string>
<string>Unauthorized</string>
<string>_getattr_</string>
<string>script</string>
<string>context</string> <string>context</string>
<string>packing_list</string> <string>packing_list</string>
<string>_getattr_</string>
<string>packing_list_state</string> <string>packing_list_state</string>
</tuple> </tuple>
</value> </value>
...@@ -115,7 +124,9 @@ if packing_list_state == "draft":\n ...@@ -115,7 +124,9 @@ if packing_list_state == "draft":\n
<item> <item>
<key> <string>func_defaults</string> </key> <key> <string>func_defaults</string> </key>
<value> <value>
<none/> <tuple>
<none/>
</tuple>
</value> </value>
</item> </item>
<item> <item>
......
530 531
\ 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