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 @@ ...@@ -54,8 +54,8 @@
<item> <item>
<key> <string>_body</string> </key> <key> <string>_body</string> </key>
<value> <string>"""\n <value> <string>"""\n
return first_name plus last name of the owner of document if the document belong\n return firstname plus lastname of the owner of document if the document belong\n
to a registry person in person_module otherwise it\'a an anonymous requester\n to a registred person in person_module otherwise it\'s an anonymous requester\n
"""\n """\n
owner = context.owner_info()[\'id\']\n owner = context.owner_info()[\'id\']\n
owner_object = context.portal_catalog.getResultValue(portal_type=\'Person\', reference=owner)\n owner_object = context.portal_catalog.getResultValue(portal_type=\'Person\', reference=owner)\n
...@@ -66,7 +66,7 @@ if owner_object is not None:\n ...@@ -66,7 +66,7 @@ if owner_object is not None:\n
if owner_object.getFirstName() + owner_object.getLastName() != \'\':\n if owner_object.getFirstName() + owner_object.getLastName() != \'\':\n
owner_name = "%s %s" % (owner_object.getFirstName(), owner_object.getLastName())\n owner_name = "%s %s" % (owner_object.getFirstName(), owner_object.getLastName())\n
else:\n else:\n
owner_name = context.getOwner()\n owner_name = owner\n
return owner_name\n return owner_name\n
</string> </value> </string> </value>
</item> </item>
...@@ -83,20 +83,7 @@ return owner_name\n ...@@ -83,20 +83,7 @@ return owner_name\n
<item> <item>
<key> <string>_proxy_roles</string> </key> <key> <string>_proxy_roles</string> </key>
<value> <value>
<tuple> <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>
</value> </value>
</item> </item>
<item> <item>
......
2010-07-07 mayoro
* remove using getOwner (private method)
* remove proxy roles
2010-07-07 mayoro 2010-07-07 mayoro
* remove test because id will be always present in owner_info * remove test because id will be always present in owner_info
......
702 705
\ 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