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 @@
<ZopeData>
<record id="1" aka="AAAAAAAAAAE=">
<pickle>
<tuple>
<global name="PythonScript" module="Products.PythonScripts.PythonScript"/>
<tuple/>
</tuple>
</pickle>
<pickle>
<dictionary>
......@@ -73,9 +70,9 @@ def getAssignmentDict(username):\n
assignment_list = person.Person_getAvailableAssignmentValueList()\n
for assignment in assignment_list:\n
assignment = assignment.getObject()\n
result[\'group_list\'].extend(assignment.getGroupList())\n
result[\'function_list\'].extend(assignment.getFunctionList())\n
result[\'site_list\'].extend(assignment.getSiteList())\n
result[\'group_list\'].extend([x for x in assignment.getGroupList() if x not in result[\'group_list\']])\n
result[\'function_list\'].extend([x for x in assignment.getFunctionList() if x not in result[\'function_list\']])\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
return result\n
\n
......
849
\ No newline at end of file
850
\ 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