Commit b849f9d8 authored by Jérome Perrin's avatar Jérome Perrin

Account_getFormattedTitle can be called on the context of an account.


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@10547 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 28b94db7
...@@ -68,7 +68,10 @@ ...@@ -68,7 +68,10 @@
</item> </item>
<item> <item>
<key> <string>_body</string> </key> <key> <string>_body</string> </key>
<value> <string>gap_id = account.Account_getGapId()\n <value> <string>if account is None:\n
account = context\n
\n
gap_id = account.Account_getGapId()\n
title = account.getTitle()\n title = account.getTitle()\n
\n \n
if gap_id.isdigit():\n if gap_id.isdigit():\n
...@@ -97,7 +100,7 @@ return title\n ...@@ -97,7 +100,7 @@ return title\n
</item> </item>
<item> <item>
<key> <string>_params</string> </key> <key> <string>_params</string> </key>
<value> <string>account</string> </value> <value> <string>account=None</string> </value>
</item> </item>
<item> <item>
<key> <string>errors</string> </key> <key> <string>errors</string> </key>
...@@ -124,6 +127,8 @@ return title\n ...@@ -124,6 +127,8 @@ return title\n
<value> <value>
<tuple> <tuple>
<string>account</string> <string>account</string>
<string>None</string>
<string>context</string>
<string>_getattr_</string> <string>_getattr_</string>
<string>gap_id</string> <string>gap_id</string>
<string>title</string> <string>title</string>
...@@ -138,7 +143,9 @@ return title\n ...@@ -138,7 +143,9 @@ return title\n
<item> <item>
<key> <string>func_defaults</string> </key> <key> <string>func_defaults</string> </key>
<value> <value>
<none/> <tuple>
<none/>
</tuple>
</value> </value>
</item> </item>
<item> <item>
......
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