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 @@
design.\n
"""\n
\n
document = context.getObject()\n
source = document.getContributorValue()\n
return (source is not None and source.getTitle() or context.Base_translateString("Unknown User"))\n
return context.getContributorTitle() or context.Base_translateString("Unknown User")\n
</string> </value>
</item>
<item>
......@@ -108,9 +106,6 @@ return (source is not None and source.getTitle() or context.Base_translateString
<tuple>
<string>_getattr_</string>
<string>context</string>
<string>document</string>
<string>source</string>
<string>None</string>
</tuple>
</value>
</item>
......
60
\ No newline at end of file
61
\ 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