Commit 69cdd67b authored by Roque's avatar Roque

erp5_web_project_ui: refactoring on project gadget info

parent 3e39c536
project_title = context.getTitle()
n_persons = 0
person_dict = {}
person_list = [x for x in context.portal_catalog(portal_type=portal_type,
for assignment in context.portal_catalog(portal_type=portal_type,
person_url = assignment.getParentRelativeUrl()
if not person_url in person_dict:
if getCount:
person_dict[person_url] = person_url
n_persons += 1
person_dict[person_url] = context.restrictedTraverse(person_url)
person_list = [line for line in context.objectValues(portal_type="Person")]
if getCount:
return n_persons
print person_list
for x in person_list:
print x.getTitle()
return printed
if not person_list:
return "0"
count = len(person_list)
return count
return person_dict
......@@ -50,7 +50,7 @@
<key> <string>_params</string> </key>
<value> <string></string> </value>
<value> <string>getCount=0</string> </value>
<key> <string>id</string> </key>
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