Commit fec8c359 authored by Rafael Monnerat's avatar Rafael Monnerat

Removed useless logs and comments commited by mistake

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@17050 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent ca6da4f1
...@@ -80,8 +80,6 @@ if depth == 0:\n ...@@ -80,8 +80,6 @@ if depth == 0:\n
selection_name= \'person_module_selection\')\n selection_name= \'person_module_selection\')\n
\n \n
else:\n else:\n
#url = category.getProperty(\'membership_criterion_category\')\n
#category_list = url.searchFolder()\n
return domain_list\n return domain_list\n
\n \n
for category in category_list:\n for category in category_list:\n
...@@ -94,7 +92,6 @@ for category in category_list:\n ...@@ -94,7 +92,6 @@ for category in category_list:\n
\n \n
domain_list.append(domain)\n domain_list.append(domain)\n
\n \n
context.log("%s on %s" % (script.getId(), context.getPath()), "%d objects domain" % len(domain_list))\n
return domain_list\n return domain_list\n
</string> </value> </string> </value>
</item> </item>
...@@ -159,7 +156,6 @@ return domain_list\n ...@@ -159,7 +156,6 @@ return domain_list\n
<string>category</string> <string>category</string>
<string>domain</string> <string>domain</string>
<string>script</string> <string>script</string>
<string>len</string>
</tuple> </tuple>
</value> </value>
</item> </item>
......
...@@ -70,7 +70,6 @@ ...@@ -70,7 +70,6 @@
<key> <string>_body</string> </key> <key> <string>_body</string> </key>
<value> <string>node = context.portal_selections.getSelectionUidList(context=context, REQUEST=context.REQUEST, \n <value> <string>node = context.portal_selections.getSelectionUidList(context=context, REQUEST=context.REQUEST, \n
selection_name=\'person_module_selection\')\n selection_name=\'person_module_selection\')\n
context.log("on %s" % context.getPath(), "%d uids at node." % len(node))\n
\n \n
# Select only the usabe part\n # Select only the usabe part\n
main_axis_begin = context.REQUEST.get(\'list_start\', 0)\n main_axis_begin = context.REQUEST.get(\'list_start\', 0)\n
...@@ -79,7 +78,6 @@ planning_box = form.get_field(\'planning_box\')\n ...@@ -79,7 +78,6 @@ planning_box = form.get_field(\'planning_box\')\n
main_axis_end = main_axis_begin + planning_box.get_value(\'main_axis_groups\')\n main_axis_end = main_axis_begin + planning_box.get_value(\'main_axis_groups\')\n
\n \n
node_uid_list = node[main_axis_begin:main_axis_end]\n node_uid_list = node[main_axis_begin:main_axis_end]\n
context.log("on %s" % context.getPath(), "%d uids at node uid list." % len(node_uid_list))\n
\n \n
acceptable_state_list = context.getPortalFutureInventoryStateList() + \\\n acceptable_state_list = context.getPortalFutureInventoryStateList() + \\\n
context.getPortalReservedInventoryStateList() + \\\n context.getPortalReservedInventoryStateList() + \\\n
...@@ -95,14 +93,12 @@ movement_list = context.portal_simulation.getMovementHistoryList(\n ...@@ -95,14 +93,12 @@ movement_list = context.portal_simulation.getMovementHistoryList(\n
omit_mirror_date=0,\n omit_mirror_date=0,\n
)\n )\n
\n \n
#return movement_list\n
\n \n
# XXX It is a bad idea to return order_value or delivery_value,\n # XXX It is a bad idea to return order_value or delivery_value,\n
# because same object can be displayed multiple time in some cases\n # because same object can be displayed multiple time in some cases\n
\n \n
return_list = []\n return_list = []\n
\n \n
# XXX This part is an approximtion for sevran\n
# Normally, simulation movement should only have 1 order value\n # Normally, simulation movement should only have 1 order value\n
for mvt_obj in movement_list:\n for mvt_obj in movement_list:\n
# XXX Can\'t we use a brain instead ?\n # XXX Can\'t we use a brain instead ?\n
...@@ -112,7 +108,6 @@ for mvt_obj in movement_list:\n ...@@ -112,7 +108,6 @@ for mvt_obj in movement_list:\n
mvt_obj = obj\n mvt_obj = obj\n
return_list.append(mvt_obj)\n return_list.append(mvt_obj)\n
\n \n
context.log("on %s" % context.getPath(), "%d objects returned." % len(return_list))\n
return return_list\n return return_list\n
</string> </value> </string> </value>
</item> </item>
...@@ -169,7 +164,6 @@ return return_list\n ...@@ -169,7 +164,6 @@ return return_list\n
<string>_getattr_</string> <string>_getattr_</string>
<string>context</string> <string>context</string>
<string>node</string> <string>node</string>
<string>len</string>
<string>main_axis_begin</string> <string>main_axis_begin</string>
<string>getattr</string> <string>getattr</string>
<string>form</string> <string>form</string>
......
...@@ -76,12 +76,9 @@ if object_path is None:\n ...@@ -76,12 +76,9 @@ if object_path is None:\n
domain_list = []\n domain_list = []\n
\n \n
if depth == 0:\n if depth == 0:\n
url = [context.person_module.restrictedTraverse(object_path)]\n category_list = [context.person_module.restrictedTraverse(object_path)]\n
category_list = url\n
\n \n
else:\n else:\n
#url = category.getProperty(\'membership_criterion_category\')\n
#category_list = url.searchFolder()\n
return domain_list\n return domain_list\n
\n \n
for category in category_list:\n for category in category_list:\n
...@@ -153,7 +150,6 @@ return domain_list\n ...@@ -153,7 +150,6 @@ return domain_list\n
<string>None</string> <string>None</string>
<string>_getitem_</string> <string>_getitem_</string>
<string>domain_list</string> <string>domain_list</string>
<string>url</string>
<string>category_list</string> <string>category_list</string>
<string>_getiter_</string> <string>_getiter_</string>
<string>category</string> <string>category</string>
......
...@@ -84,17 +84,12 @@ movement_list = context.portal_simulation.getMovementHistoryList(\n ...@@ -84,17 +84,12 @@ movement_list = context.portal_simulation.getMovementHistoryList(\n
omit_mirror_date=0,\n omit_mirror_date=0,\n
)\n )\n
\n \n
# return movement_list\n
\n \n
# XXX It is a bad idea to return order_value or delivery_value,\n # XXX It is a bad idea to return order_value or delivery_value,\n
# because same object can be displayed multiple time in some cases\n # because same object can be displayed multiple time in some cases\n
\n \n
# XXX Simulation movement should not be editable\n
# Same for blocks on which user does not have write permission\n
\n
return_list = []\n return_list = []\n
\n \n
# XXX This part is an approximtion for sevran\n
# Normally, simulation movement should only have 1 order value\n # Normally, simulation movement should only have 1 order value\n
for mvt_obj in movement_list:\n for mvt_obj in movement_list:\n
# XXX Can\'t we use a brain instead ?\n # XXX Can\'t we use a brain instead ?\n
......
325 327
\ 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