Commit c6fc9c47 authored by Julien Muchembled's avatar Julien Muchembled

Except for persons, always try to use 'codification' property first in order...

Except for persons, always try to use 'codification' property first in order to compute security group.
Indeed, this property was created for that purpose, as written in Codification property sheet:
« Codification is an identifier used by security groups »

'reference' property is used if no codification is set.


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@27319 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 878e4352
......@@ -126,10 +126,9 @@ for base_category in category_order:\n
user_name = category_object.getReference()\n
if user_name is not None: user_list.append(user_name)\n
else:\n
if portal_type == \'Category\':\n
category_code = category_object.getCodification() or category_object.getId()\n
else:\n
category_code = category_object.getProperty(\'reference\') or category_object.getId()\n
category_code = (category_object.getProperty(\'codification\') or\n
category_object.getProperty(\'reference\') or\n
category_object.getId())\n
if is_child_category: category_code += \'*\'\n
associative_list.append(category_code)\n
# Prevent making a cartesian product with an empty set\n
......
1212
\ No newline at end of file
1213
\ 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