Commit 5bcef9a2 authored by Mayoro Diagne's avatar Mayoro Diagne

2010-07-07 mayoro

* remove using getOwner (private method)
* remove proxy roles

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@36964 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 7871a351
......@@ -54,8 +54,8 @@
<item>
<key> <string>_body</string> </key>
<value> <string>"""\n
return first_name plus last name of the owner of document if the document belong\n
to a registry person in person_module otherwise it\'a an anonymous requester\n
return firstname plus lastname of the owner of document if the document belong\n
to a registred person in person_module otherwise it\'s an anonymous requester\n
"""\n
owner = context.owner_info()[\'id\']\n
owner_object = context.portal_catalog.getResultValue(portal_type=\'Person\', reference=owner)\n
......@@ -66,7 +66,7 @@ if owner_object is not None:\n
if owner_object.getFirstName() + owner_object.getLastName() != \'\':\n
owner_name = "%s %s" % (owner_object.getFirstName(), owner_object.getLastName())\n
else:\n
owner_name = context.getOwner()\n
owner_name = owner\n
return owner_name\n
</string> </value>
</item>
......@@ -83,20 +83,7 @@ return owner_name\n
<item>
<key> <string>_proxy_roles</string> </key>
<value>
<tuple>
<string>Agent</string>
<string>Anonymous</string>
<string>Assignee</string>
<string>Assignor</string>
<string>Associate</string>
<string>Auditor</string>
<string>Authenticated</string>
<string>Author</string>
<string>Manager</string>
<string>Member</string>
<string>Owner</string>
<string>Reviewer</string>
</tuple>
<tuple/>
</value>
</item>
<item>
......
2010-07-07 mayoro
* remove using getOwner (private method)
* remove proxy roles
2010-07-07 mayoro
* remove test because id will be always present in owner_info
......
702
\ No newline at end of file
705
\ 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