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
object_dict_list = []\n
id = 0\n
\n
context.log(model_line_list)\n
for model_line in model_line_list:\n
base_category_list = model_line.getVariationBaseCategoryList()\n
base_application_list = model_line.getBaseApplicationTitleList()\n
......@@ -98,9 +97,7 @@ for model_line in model_line_list:\n
previous_share = None\n
object_dict = {}\n
\n
if cartesian_product == [[]]:\n
context.log(\'rien\')\n
\n
if cartesian_product == [[]]: \n
share_dict = {}\n
if 0:\n
share_dict[cell.getTaxCategory()+\'_price\'] = 0\n
......@@ -108,8 +105,6 @@ for model_line in model_line_list:\n
continue\n
\n
for tuple in cartesian_product:\n
context.log(tuple)\n
\n
share_dict = {}\n
cell = model_line.getCell(*tuple)\n
if cell is None:\n
......
......@@ -125,7 +125,8 @@ for paysheet_line in paysheet_line_list:\n
for item in tuple:\n
# the dict key is the base category and value is the category path\n
tuple_dict[item.split(\'/\')[0]] = \\\n
portal.portal_categories.restrictedTraverse(item).getTitle()\n
portal.portal_categories.restrictedTraverse(item).getShortTitle() or \\\n
portal.portal_categories.restrictedTraverse(item).getTitle()\n
tuple_dict[item.split(\'/\')[0]+\'_relative_url\']=item\n
\n
# we want to display as lines as a paysheet line as slices\n
......
336
\ No newline at end of file
337
\ 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