[Erp5-report] r10547 - in /erp5/trunk/bt5/erp5_accounting: SkinTemplateItem/portal_skins/er...

nobody at svn.erp5.org nobody at svn.erp5.org
Wed Oct 4 19:50:02 CEST 2006


Author: jerome
Date: Wed Oct  4 19:49:58 2006
New Revision: 10547

URL: http://svn.erp5.org?rev=10547&view=rev
Log:
Account_getFormattedTitle can be called on the context of an account.

Modified:
    erp5/trunk/bt5/erp5_accounting/SkinTemplateItem/portal_skins/erp5_accounting/Account_getFormattedTitle.xml
    erp5/trunk/bt5/erp5_accounting/bt/revision

Modified: erp5/trunk/bt5/erp5_accounting/SkinTemplateItem/portal_skins/erp5_accounting/Account_getFormattedTitle.xml
URL: http://svn.erp5.org/erp5/trunk/bt5/erp5_accounting/SkinTemplateItem/portal_skins/erp5_accounting/Account_getFormattedTitle.xml?rev=10547&r1=10546&r2=10547&view=diff
==============================================================================
--- erp5/trunk/bt5/erp5_accounting/SkinTemplateItem/portal_skins/erp5_accounting/Account_getFormattedTitle.xml (original)
+++ erp5/trunk/bt5/erp5_accounting/SkinTemplateItem/portal_skins/erp5_accounting/Account_getFormattedTitle.xml Wed Oct  4 19:49:58 2006
@@ -68,7 +68,10 @@
         </item>
         <item>
             <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
 \n
 if gap_id.isdigit():\n
@@ -97,7 +100,7 @@
         </item>
         <item>
             <key> <string>_params</string> </key>
-            <value> <string>account</string> </value>
+            <value> <string>account=None</string> </value>
         </item>
         <item>
             <key> <string>errors</string> </key>
@@ -124,6 +127,8 @@
                         <value>
                           <tuple>
                             <string>account</string>
+                            <string>None</string>
+                            <string>context</string>
                             <string>_getattr_</string>
                             <string>gap_id</string>
                             <string>title</string>
@@ -138,7 +143,9 @@
         <item>
             <key> <string>func_defaults</string> </key>
             <value>
-              <none/>
+              <tuple>
+                <none/>
+              </tuple>
             </value>
         </item>
         <item>

Modified: erp5/trunk/bt5/erp5_accounting/bt/revision
URL: http://svn.erp5.org/erp5/trunk/bt5/erp5_accounting/bt/revision?rev=10547&r1=10546&r2=10547&view=diff
==============================================================================
--- erp5/trunk/bt5/erp5_accounting/bt/revision (original)
+++ erp5/trunk/bt5/erp5_accounting/bt/revision Wed Oct  4 19:49:58 2006
@@ -1,1 +1,1 @@
-61
+62




More information about the Erp5-report mailing list