Commit a3de84a6 authored by Ivan Tyagov's avatar Ivan Tyagov

Filter duplicating items.

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@38652 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent baad9231
...@@ -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>
...@@ -73,9 +70,9 @@ def getAssignmentDict(username):\n ...@@ -73,9 +70,9 @@ def getAssignmentDict(username):\n
assignment_list = person.Person_getAvailableAssignmentValueList()\n assignment_list = person.Person_getAvailableAssignmentValueList()\n
for assignment in assignment_list:\n for assignment in assignment_list:\n
assignment = assignment.getObject()\n assignment = assignment.getObject()\n
result[\'group_list\'].extend(assignment.getGroupList())\n result[\'group_list\'].extend([x for x in assignment.getGroupList() if x not in result[\'group_list\']])\n
result[\'function_list\'].extend(assignment.getFunctionList())\n result[\'function_list\'].extend([x for x in assignment.getFunctionList() if x not in result[\'function_list\']])\n
result[\'site_list\'].extend(assignment.getSiteList())\n result[\'site_list\'].extend([x for x in assignment.getSiteList() if x not in result[\'site_list\']])\n
result[\'destination_trade_relative_url\'] = assignment.getDestinationTradeRelativeUrl()\n result[\'destination_trade_relative_url\'] = assignment.getDestinationTradeRelativeUrl()\n
return result\n return result\n
\n \n
......
849 850
\ 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