Commit 2b8722f4 authored by Fabien Morin's avatar Fabien Morin

remove some unused logs and use short title if it's defined

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@25196 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 1e98fd3a
...@@ -82,7 +82,6 @@ line_list = []\n ...@@ -82,7 +82,6 @@ line_list = []\n
object_dict_list = []\n object_dict_list = []\n
id = 0\n id = 0\n
\n \n
context.log(model_line_list)\n
for model_line in model_line_list:\n for model_line in model_line_list:\n
base_category_list = model_line.getVariationBaseCategoryList()\n base_category_list = model_line.getVariationBaseCategoryList()\n
base_application_list = model_line.getBaseApplicationTitleList()\n base_application_list = model_line.getBaseApplicationTitleList()\n
...@@ -98,9 +97,7 @@ for model_line in model_line_list:\n ...@@ -98,9 +97,7 @@ for model_line in model_line_list:\n
previous_share = None\n previous_share = None\n
object_dict = {}\n object_dict = {}\n
\n \n
if cartesian_product == [[]]:\n if cartesian_product == [[]]: \n
context.log(\'rien\')\n
\n
share_dict = {}\n share_dict = {}\n
if 0:\n if 0:\n
share_dict[cell.getTaxCategory()+\'_price\'] = 0\n share_dict[cell.getTaxCategory()+\'_price\'] = 0\n
...@@ -108,8 +105,6 @@ for model_line in model_line_list:\n ...@@ -108,8 +105,6 @@ for model_line in model_line_list:\n
continue\n continue\n
\n \n
for tuple in cartesian_product:\n for tuple in cartesian_product:\n
context.log(tuple)\n
\n
share_dict = {}\n share_dict = {}\n
cell = model_line.getCell(*tuple)\n cell = model_line.getCell(*tuple)\n
if cell is None:\n if cell is None:\n
......
...@@ -125,6 +125,7 @@ for paysheet_line in paysheet_line_list:\n ...@@ -125,6 +125,7 @@ for paysheet_line in paysheet_line_list:\n
for item in tuple:\n for item in tuple:\n
# the dict key is the base category and value is the category path\n # the dict key is the base category and value is the category path\n
tuple_dict[item.split(\'/\')[0]] = \\\n tuple_dict[item.split(\'/\')[0]] = \\\n
portal.portal_categories.restrictedTraverse(item).getShortTitle() or \\\n
portal.portal_categories.restrictedTraverse(item).getTitle()\n portal.portal_categories.restrictedTraverse(item).getTitle()\n
tuple_dict[item.split(\'/\')[0]+\'_relative_url\']=item\n tuple_dict[item.split(\'/\')[0]+\'_relative_url\']=item\n
\n \n
......
336 337
\ 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