Commit 9e376960 authored by Ivan Tyagov's avatar Ivan Tyagov

Use default Person's site & group as set by respective Career settings (not...

Use default Person's site & group as set by respective Career settings (not any more Person's Assignments).

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@38659 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 572b4905
...@@ -55,11 +55,11 @@ Gets document properties discovered from the user who contributes / owns the doc ...@@ -55,11 +55,11 @@ Gets document properties discovered from the user who contributes / owns the doc
User would be usually the current user, but sometimes the name has to be given explicitly\n User would be usually the current user, but sometimes the name has to be given explicitly\n
if e.g. the doc is contributed by email, and the script is run by zope user.\n if e.g. the doc is contributed by email, and the script is run by zope user.\n
"""\n """\n
assignment_dict = context.ERP5Site_getPersonAssignmentDict(user_name=user_name)\n career_dict = context.ERP5Site_getPersonCareerDict(user_name=user_name)\n
\n \n
# XXX: make list of properties configurable through preferences\n # XXX: make list of properties configurable through preferences\n
return {\'group_list\': assignment_dict[\'group_list\'],\n return {\'group_list\': career_dict[\'group_list\'],\n
\'function_list\': assignment_dict[\'function_list\']}\n \'site_list\': career_dict[\'site_list\']}\n
</string> </value> </string> </value>
</item> </item>
<item> <item>
...@@ -99,7 +99,7 @@ return {\'group_list\': assignment_dict[\'group_list\'],\n ...@@ -99,7 +99,7 @@ return {\'group_list\': assignment_dict[\'group_list\'],\n
<string>user_name</string> <string>user_name</string>
<string>_getattr_</string> <string>_getattr_</string>
<string>context</string> <string>context</string>
<string>assignment_dict</string> <string>career_dict</string>
<string>_getitem_</string> <string>_getitem_</string>
</tuple> </tuple>
</value> </value>
......
112 113
\ No newline at end of file \ 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