Commit 02c14379 authored by Fabien Morin's avatar Fabien Morin

Improve a bit this script

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@39682 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 3cd01156
...@@ -59,9 +59,7 @@ ...@@ -59,9 +59,7 @@
design.\n design.\n
"""\n """\n
\n \n
document = context.getObject()\n return context.getContributorTitle() or context.Base_translateString("Unknown User")\n
source = document.getContributorValue()\n
return (source is not None and source.getTitle() or context.Base_translateString("Unknown User"))\n
</string> </value> </string> </value>
</item> </item>
<item> <item>
...@@ -108,9 +106,6 @@ return (source is not None and source.getTitle() or context.Base_translateString ...@@ -108,9 +106,6 @@ return (source is not None and source.getTitle() or context.Base_translateString
<tuple> <tuple>
<string>_getattr_</string> <string>_getattr_</string>
<string>context</string> <string>context</string>
<string>document</string>
<string>source</string>
<string>None</string>
</tuple> </tuple>
</value> </value>
</item> </item>
......
60 61
\ 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