Commit 81ce0299 authored by Christophe Dumez's avatar Christophe Dumez

- reverted last commit: too dirty.

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@9131 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 9c651124
...@@ -94,7 +94,7 @@ for category_name in category_dict.keys():\n ...@@ -94,7 +94,7 @@ for category_name in category_dict.keys():\n
result_dict[category_name]=result_cat_fullpath\n result_dict[category_name]=result_cat_fullpath\n
else:\n else:\n
# XXX: this request does a LIKE "%xxxx%", We should find a way to remove the %%\n # XXX: this request does a LIKE "%xxxx%", We should find a way to remove the %%\n
result_list = context.portal_catalog(portal_type=\'Category\', title=str(subcat_code)+\'%\', relative_url=category_name+\'%\')\n result_list = context.portal_catalog(portal_type=\'Category\', title=str(subcat_code), relative_url=category_name+\'%\')\n
if len(result_list) != 0:\n if len(result_list) != 0:\n
result_cat_fullpath = \'/\'.join(result_list[0].getRelativeUrl().split(\'/\')[1:])\n result_cat_fullpath = \'/\'.join(result_list[0].getRelativeUrl().split(\'/\')[1:])\n
result_dict[category_name]=result_cat_fullpath\n result_dict[category_name]=result_cat_fullpath\n
......
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