Commit 8d58f74e authored by Romain Courteaud's avatar Romain Courteaud

Parameters are now mandatory.

parent 3b3e9609
...@@ -58,13 +58,6 @@ from DateTime import DateTime\n ...@@ -58,13 +58,6 @@ from DateTime import DateTime\n
person = context\n person = context\n
portal = person.getPortalObject()\n portal = person.getPortalObject()\n
\n \n
if remove_hosting_list is None:\n
remove_hosting_list = []\n
if add_kw_list is None:\n
add_kw_list = []\n
if start_date_tuple_list is None:\n
start_date_tuple_list = []\n
\n
previous_open_sale_order = portal.portal_catalog.getResultValue(\n previous_open_sale_order = portal.portal_catalog.getResultValue(\n
default_destination_uid=person.getUid(),\n default_destination_uid=person.getUid(),\n
portal_type="Open Sale Order",\n portal_type="Open Sale Order",\n
...@@ -168,7 +161,7 @@ return add_kw_kw, modify_kw_kw, list(remove_id_list)\n ...@@ -168,7 +161,7 @@ return add_kw_kw, modify_kw_kw, list(remove_id_list)\n
</item> </item>
<item> <item>
<key> <string>_params</string> </key> <key> <string>_params</string> </key>
<value> <string>remove_hosting_list=None, add_kw_list=None, start_date_tuple_list=None</string> </value> <value> <string>remove_hosting_list, add_kw_list, start_date_tuple_list</string> </value>
</item> </item>
<item> <item>
<key> <string>id</string> </key> <key> <string>id</string> </key>
......
...@@ -87,10 +87,10 @@ for hosting_subscription in portal.portal_catalog(\n ...@@ -87,10 +87,10 @@ for hosting_subscription in portal.portal_catalog(\n
\n \n
\n \n
result = context.Person_updateOpenSaleOrder(\n result = context.Person_updateOpenSaleOrder(\n
src__=src__,\n remove_hosting_list,\n
remove_hosting_list=remove_hosting_list,\n add_kw_list,\n
add_kw_list=add_kw_list,\n start_date_tuple_list,\n
start_date_tuple_list=start_date_tuple_list)\n src__=src__)\n
from pprint import pformat\n from pprint import pformat\n
return pformat(result)\n return pformat(result)\n
</string> </value> </string> </value>
......
...@@ -66,9 +66,9 @@ def storeWorkflowComment(document, comment):\n ...@@ -66,9 +66,9 @@ def storeWorkflowComment(document, comment):\n
portal.portal_workflow.doActionFor(document, \'edit_action\', comment=comment)\n portal.portal_workflow.doActionFor(document, \'edit_action\', comment=comment)\n
\n \n
add_kw_kw, modify_kw_kw, remove_id_list = context.Person_getOpenSaleOrderDifference(\n add_kw_kw, modify_kw_kw, remove_id_list = context.Person_getOpenSaleOrderDifference(\n
remove_hosting_list=remove_hosting_list,\n remove_hosting_list,\n
add_kw_list=add_kw_list,\n add_kw_list,\n
start_date_tuple_list=start_date_tuple_list)\n start_date_tuple_list)\n
\n \n
if src__== 1:\n if src__== 1:\n
return add_kw_kw, modify_kw_kw, remove_id_list\n return add_kw_kw, modify_kw_kw, remove_id_list\n
...@@ -132,7 +132,7 @@ return add_kw_kw, modify_kw_kw, remove_id_list\n ...@@ -132,7 +132,7 @@ return add_kw_kw, modify_kw_kw, remove_id_list\n
</item> </item>
<item> <item>
<key> <string>_params</string> </key> <key> <string>_params</string> </key>
<value> <string>src__=0, remove_hosting_list=None, add_kw_list=None, start_date_tuple_list=None</string> </value> <value> <string>remove_hosting_list, add_kw_list, start_date_tuple_list, src__</string> </value>
</item> </item>
<item> <item>
<key> <string>id</string> </key> <key> <string>id</string> </key>
......
223 224
\ 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