Prevent call of the script by the url.

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@41576 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 8bdc177c
......@@ -51,6 +51,9 @@
<item>
<key> <string>_body</string> </key>
<value> <string>"""Set connected user as shopping cart customer"""\n
if REQUEST is not None:\n
raise RuntimeError, "You can not call this script from the URL"\n
\n
shopping_cart = context.SaleOrder_getShoppingCart()\n
\n
if person is None:\n
......@@ -61,7 +64,7 @@ shopping_cart.edit(destination_decision_value=person)\n
</item>
<item>
<key> <string>_params</string> </key>
<value> <string>person=None</string> </value>
<value> <string>person=None, REQUEST=None</string> </value>
</item>
<item>
<key> <string>id</string> </key>
......
279
\ No newline at end of file
280
\ 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