Commit dfc3186a authored by Aurel's avatar Aurel

2006-01-23 Aurel

* check category_list is a list in ERP5Type_asSecurityGroupId


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@5244 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 3f1eabe0
...@@ -92,6 +92,8 @@ else:\n ...@@ -92,6 +92,8 @@ else:\n
\n \n
for base_category in category_order:\n for base_category in category_order:\n
category_list = kw[base_category]\n category_list = kw[base_category]\n
if same_type(category_list, \'\'):\n
category_list = [category_list]\n
for category in category_list:\n for category in category_list:\n
category_path = \'%s/%s\' % (base_category, category)\n category_path = \'%s/%s\' % (base_category, category)\n
category_object = context.portal_categories.getCategoryValue(category_path)\n category_object = context.portal_categories.getCategoryValue(category_path)\n
...@@ -162,6 +164,7 @@ return \'_\'.join(code_list)\n ...@@ -162,6 +164,7 @@ return \'_\'.join(code_list)\n
<string>base_category</string> <string>base_category</string>
<string>_getitem_</string> <string>_getitem_</string>
<string>category_list</string> <string>category_list</string>
<string>same_type</string>
<string>category</string> <string>category</string>
<string>category_path</string> <string>category_path</string>
<string>context</string> <string>context</string>
......
2006-01-23 Aurel
* check category_list is a list in ERP5Type_asSecurityGroupId
2006-01-23 Alex 2006-01-23 Alex
* Added "Add portal folders" permission for Author in Base_setDefaultSecurity * Added "Add portal folders" permission for Author in Base_setDefaultSecurity
......
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