Commit 932be8ce authored by Fabien Devaux's avatar Fabien Devaux

Utilisation du script pour formatter l'affichage

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@7351 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 8b9642f1
......@@ -14,7 +14,7 @@
<dictionary>
<item>
<key> <string>Python_magic</string> </key>
<value> <string encoding="base64">O/INCg==</string> </value>
<value> <string encoding="base64">bfINCg==</string> </value>
</item>
<item>
<key> <string>Script_magic</string> </key>
......@@ -79,11 +79,10 @@ category_dict = {\'income\': \'account_type/income\',\n
category = category_dict.get(context.id, \'account_type\')\n
\n
display_dict = {}\n
display_funct = context.Account_getFormattedTitle\n
\n
def display(x):\n
if x not in display_dict:\n
gap_id = x.getGapId()\n
account_title = x.getTitle()\n
display_dict[x] = "%s - %s" % (gap_id, account_title)\n
display_dict[x] = display_funct(x)\n
return display_dict[x]\n
\n
def sort(x,y):\n
......@@ -158,6 +157,7 @@ return getItemList( category=category, portal_path=portal_path, \n
<string>context</string>
<string>category</string>
<string>display_dict</string>
<string>display_funct</string>
<string>display</string>
<string>sort</string>
<string>None</string>
......
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