Commit 79d4d473 authored by Ivan Tyagov's avatar Ivan Tyagov

Only 'group & 'site' properties should be taken by default during ingestion process.

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@38653 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent a3de84a6
...@@ -2,10 +2,7 @@ ...@@ -2,10 +2,7 @@
<ZopeData> <ZopeData>
<record id="1" aka="AAAAAAAAAAE="> <record id="1" aka="AAAAAAAAAAE=">
<pickle> <pickle>
<tuple>
<global name="PythonScript" module="Products.PythonScripts.PythonScript"/> <global name="PythonScript" module="Products.PythonScripts.PythonScript"/>
<tuple/>
</tuple>
</pickle> </pickle>
<pickle> <pickle>
<dictionary> <dictionary>
...@@ -59,7 +56,10 @@ User would be usually the current user, but sometimes the name has to be given e ...@@ -59,7 +56,10 @@ User would be usually the current user, but sometimes the name has to be given e
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 assignment_dict = context.ERP5Site_getPersonAssignmentDict(user_name=user_name)\n
return assignment_dict\n \n
# XXX: make list of properties configurable through preferences\n
return {\'group_list\': assignment_dict[\'group_list\'],\n
\'function_list\': assignment_dict[\'function_list\']}\n
</string> </value> </string> </value>
</item> </item>
<item> <item>
...@@ -100,6 +100,7 @@ return assignment_dict\n ...@@ -100,6 +100,7 @@ return assignment_dict\n
<string>_getattr_</string> <string>_getattr_</string>
<string>context</string> <string>context</string>
<string>assignment_dict</string> <string>assignment_dict</string>
<string>_getitem_</string>
</tuple> </tuple>
</value> </value>
</item> </item>
......
110 111
\ 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