Commit 64543d2c authored by Ivan Tyagov's avatar Ivan Tyagov

Use portal_catalog not contentValues(). Remove logging.

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@14789 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 603160a6
......@@ -78,13 +78,12 @@
persons_to_inform = []\n
\n
# find which persons have needed roles so they can be informed\n
person_list = context.getPortalObject().person_module.contentValues()\n
person_list = context.getPortalObject().portal_catalog(portal_type = \'Person\')\n
person_list = filter(lambda x: x.getReference() is not None, person_list)\n
for person in person_list:\n
local_roles = context.Document_getPersonRoleList(person, context)\n
# check if person\'s roles in this document\'s context allow him/her to modify it\n
intersect = [k for k in local_roles if k in roles_to_inform]\n
context.debug(intersect )\n
if len(intersect) > 0:\n
persons_to_inform.append(person)\n
\n
......
649
\ No newline at end of file
651
\ 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