Commit 9c651124 authored by Christophe Dumez's avatar Christophe Dumez

- Temporary fix for title matching in OOo import (still unperfect)

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@9130 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent a4bb8fbd
......@@ -94,7 +94,7 @@ for category_name in category_dict.keys():\n
result_dict[category_name]=result_cat_fullpath\n
else:\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
result_cat_fullpath = \'/\'.join(result_list[0].getRelativeUrl().split(\'/\')[1:])\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