Commit 084f8a04 authored by Kevin Deldycke's avatar Kevin Deldycke

Update to the last version


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@4545 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 0e06b6f7
...@@ -69,19 +69,24 @@ ...@@ -69,19 +69,24 @@
<value> <string># XXX For now, this script requires proxy manager\n <value> <string># XXX For now, this script requires proxy manager\n
\n \n
# base_category_list : list of category values we need to retrieve\n # base_category_list : list of category values we need to retrieve\n
# user_name : string obtained from getSecurityManager().getUser().getUserName()\n # user_name : string obtained from getSecurityManager().getUser().getUserName() [NuxUserGroup]\n
# When using PluggableAuthService with ERP5GroupMAnager, user_name is the id\n
# of the person linked to getUser().getId() through getReference() (which is its login).\n
# object : object which we want to assign roles to.\n # object : object which we want to assign roles to.\n
# portal_type : portal type of object\n # portal_type : portal type of object\n
\n \n
# must always return a list of dicts\n
\n
category_list = []\n category_list = []\n
\n \n
person_module = getattr(context.portal_url.getPortalObject(), \'person\', None)\n person_module = context.portal_url.getPortalObject().getDefaultModule(\'Person\')\n
person_object = getattr(person_module, user_name, None)\n person_object = getattr(person_module, user_name, None)\n
\n \n
# if a person_object was not found in the module, we do nothing more\n # if a person_object was not found in the module, we do nothing more\n
# this happens for example when a manager creates a person_object for a new user\n # this happens for example when a manager with no associated person object\n
if person_object == None:\n # creates a person_object for a new user\n
return\n if person_object is None:\n
return []\n
\n \n
# We look for valid assignments of this user\n # We look for valid assignments of this user\n
for assignment in person_object.contentValues(filter={\'portal_type\': \'Assignment\'}):\n for assignment in person_object.contentValues(filter={\'portal_type\': \'Assignment\'}):\n
...@@ -109,33 +114,34 @@ return category_list\n ...@@ -109,33 +114,34 @@ return category_list\n
<item> <item>
<key> <string>_code</string> </key> <key> <string>_code</string> </key>
<value> <string encoding="base64">YwAAAAAAAAAAAQAAAEAAAABzDQAAAGQBAIQAAFoAAGQAAFMoAgAAAE5jBAAAABQAAAAVAAAAQwAA <value> <string encoding="base64">YwAAAAAAAAAAAQAAAEAAA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AAAAA</string> </value>
</item> </item>
<item> <item>
<key> <string>_filepath</string> </key> <key> <string>_filepath</string> </key>
...@@ -188,11 +194,11 @@ bnQoAAAAACgAAAAAcw8AAABTY3JpcHQgKFB5dGhvbilzCAAAADxtb2R1bGU+AQAAAHMAAAAA</string ...@@ -188,11 +194,11 @@ bnQoAAAAACgAAAAAcw8AAABTY3JpcHQgKFB5dGhvbilzCAAAADxtb2R1bGU+AQAAAHMAAAAA</string
<string>object</string> <string>object</string>
<string>portal_type</string> <string>portal_type</string>
<string>category_list</string> <string>category_list</string>
<string>getattr</string>
<string>_getattr_</string> <string>_getattr_</string>
<string>context</string> <string>context</string>
<string>None</string>
<string>person_module</string> <string>person_module</string>
<string>getattr</string>
<string>None</string>
<string>person_object</string> <string>person_object</string>
<string>_getiter_</string> <string>_getiter_</string>
<string>assignment</string> <string>assignment</string>
......
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