Commit 25cfb330 authored by Fabien Morin's avatar Fabien Morin

remove XXX and improve comment

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@39683 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 02c14379
...@@ -51,12 +51,8 @@ ...@@ -51,12 +51,8 @@
<item> <item>
<key> <string>_body</string> </key> <key> <string>_body</string> </key>
<value> <string>"""\n <value> <string>"""\n
This simple script returns the author name of the current context.\n This simple script returns the contributor title of the current context.\n
\n It has a proxy_role of manager to allowed anonymous to get the contributor title\n
TODO: XXX-JPS\n
- I am sure this kind of script could be more generic in ERP5\n
and useful in other places (not only blog). Consider API\n
design.\n
"""\n """\n
\n \n
return context.getContributorTitle() or context.Base_translateString("Unknown User")\n return context.getContributorTitle() or context.Base_translateString("Unknown User")\n
...@@ -126,7 +122,7 @@ return context.getContributorTitle() or context.Base_translateString("Unknown Us ...@@ -126,7 +122,7 @@ return context.getContributorTitle() or context.Base_translateString("Unknown Us
</item> </item>
<item> <item>
<key> <string>title</string> </key> <key> <string>title</string> </key>
<value> <string>Get the author name from a blog post</string> </value> <value> <string>Get the contributor title from a document</string> </value>
</item> </item>
<item> <item>
<key> <string>warnings</string> </key> <key> <string>warnings</string> </key>
......
61 62
\ 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