[Erp5-report] r10536 - /erp5/trunk/bt5/erp5_accounting_l10n_fr/SkinTemplateItem/portal_skin...

nobody at svn.erp5.org nobody at svn.erp5.org
Wed Oct 4 15:57:45 CEST 2006


Author: jerome
Date: Wed Oct  4 15:57:42 2006
New Revision: 10536

URL: http://svn.erp5.org?rev=10536&view=rev
Log:
use restrictedTraverse from the portal, to have the original acquisition context.


Modified:
    erp5/trunk/bt5/erp5_accounting_l10n_fr/SkinTemplateItem/portal_skins/erp5_accounting_l10n_fr/FiscalReportCell_doGetInventory.xml

Modified: erp5/trunk/bt5/erp5_accounting_l10n_fr/SkinTemplateItem/portal_skins/erp5_accounting_l10n_fr/FiscalReportCell_doGetInventory.xml
URL: http://svn.erp5.org/erp5/trunk/bt5/erp5_accounting_l10n_fr/SkinTemplateItem/portal_skins/erp5_accounting_l10n_fr/FiscalReportCell_doGetInventory.xml?rev=10536&r1=10535&r2=10536&view=diff
==============================================================================
--- erp5/trunk/bt5/erp5_accounting_l10n_fr/SkinTemplateItem/portal_skins/erp5_accounting_l10n_fr/FiscalReportCell_doGetInventory.xml (original)
+++ erp5/trunk/bt5/erp5_accounting_l10n_fr/SkinTemplateItem/portal_skins/erp5_accounting_l10n_fr/FiscalReportCell_doGetInventory.xml Wed Oct  4 15:57:42 2006
@@ -107,11 +107,12 @@
 # \'net_balance\' is the sum of balance of all accounts found under the \'gap_id_list\' criterion\n
 net_balance = 0.0\n
 \n
+ctool = context.getPortalObject().portal_categories\n
 for gap_id in gap_id_list:\n
   gap_path = getURL(gap_id)\n
 \n
   # Checks the node category exists\n
-  if context.restrictedTraverse(\'portal_categories/%s\' % gap_path, None) is not None:\n
+  if ctool.restrictedTraverse(gap_path, None) is not None:\n
     params["node_category"] = gap_path\n
     new_balance = 0.0\n
 \n




More information about the Erp5-report mailing list