[Erp5-report] r22458 - in /erp5/trunk/bt5/erp5_accounting: SkinTemplateItem/portal_skins/er...
nobody at svn.erp5.org
nobody at svn.erp5.org
Fri Jul 11 17:27:41 CEST 2008
Author: romain
Date: Fri Jul 11 17:27:40 2008
New Revision: 22458
URL: http://svn.erp5.org?rev=22458&view=rev
Log:
Remove useless caching.
Modified:
erp5/trunk/bt5/erp5_accounting/SkinTemplateItem/portal_skins/erp5_accounting/PaymentTransaction_getTotalPayablePrice.xml
erp5/trunk/bt5/erp5_accounting/bt/revision
Modified: erp5/trunk/bt5/erp5_accounting/SkinTemplateItem/portal_skins/erp5_accounting/PaymentTransaction_getTotalPayablePrice.xml
URL: http://svn.erp5.org/erp5/trunk/bt5/erp5_accounting/SkinTemplateItem/portal_skins/erp5_accounting/PaymentTransaction_getTotalPayablePrice.xml?rev=22458&r1=22457&r2=22458&view=diff
==============================================================================
--- erp5/trunk/bt5/erp5_accounting/SkinTemplateItem/portal_skins/erp5_accounting/PaymentTransaction_getTotalPayablePrice.xml (original)
+++ erp5/trunk/bt5/erp5_accounting/SkinTemplateItem/portal_skins/erp5_accounting/PaymentTransaction_getTotalPayablePrice.xml Fri Jul 11 17:27:40 2008
@@ -65,9 +65,7 @@
</item>
<item>
<key> <string>_body</string> </key>
- <value> <string>from Products.ERP5Type.Cache import CachingMethod\n
-\n
-if brain is not None:\n
+ <value> <string>if brain is not None:\n
transaction = brain.getObject()\n
else:\n
transaction = context\n
@@ -86,8 +84,7 @@
if node is not None and node.isMemberOf(\'account_type/asset/cash\'):\n
total_price -= mvt.getDestinationInventoriatedTotalAssetPrice() or 0\n
return total_price\n
- \n
-getTotalPrice = CachingMethod(getTotalPrice, id=\'PaymentTransaction_getTotalPayablePrice\')\n
+\n
return getTotalPrice(transaction.getPath())\n
</string> </value>
</item>
@@ -140,8 +137,6 @@
<string>brain</string>
<string>selection</string>
<string>kw</string>
- <string>Products.ERP5Type.Cache</string>
- <string>CachingMethod</string>
<string>None</string>
<string>_getattr_</string>
<string>transaction</string>
Modified: erp5/trunk/bt5/erp5_accounting/bt/revision
URL: http://svn.erp5.org/erp5/trunk/bt5/erp5_accounting/bt/revision?rev=22458&r1=22457&r2=22458&view=diff
==============================================================================
--- erp5/trunk/bt5/erp5_accounting/bt/revision (original)
+++ erp5/trunk/bt5/erp5_accounting/bt/revision Fri Jul 11 17:27:40 2008
@@ -1,1 +1,1 @@
-724
+725
More information about the Erp5-report
mailing list