[Erp5-report] r10391 - /erp5/trunk/bt5/erp5_accounting/SkinTemplateItem/portal_skins/erp5_a...
nobody at svn.erp5.org
nobody at svn.erp5.org
Thu Sep 28 13:54:13 CEST 2006
Author: jerome
Date: Thu Sep 28 13:54:12 2006
New Revision: 10391
URL: http://svn.erp5.org?rev=10391&view=rev
Log:
getPortalDefaultSectionCategory is deprecated
Modified:
erp5/trunk/bt5/erp5_accounting/SkinTemplateItem/portal_skins/erp5_accounting/AccountingTransaction_isSourceView.xml
Modified: erp5/trunk/bt5/erp5_accounting/SkinTemplateItem/portal_skins/erp5_accounting/AccountingTransaction_isSourceView.xml
URL: http://svn.erp5.org/erp5/trunk/bt5/erp5_accounting/SkinTemplateItem/portal_skins/erp5_accounting/AccountingTransaction_isSourceView.xml?rev=10391&r1=10390&r2=10391&view=diff
==============================================================================
--- erp5/trunk/bt5/erp5_accounting/SkinTemplateItem/portal_skins/erp5_accounting/AccountingTransaction_isSourceView.xml (original)
+++ erp5/trunk/bt5/erp5_accounting/SkinTemplateItem/portal_skins/erp5_accounting/AccountingTransaction_isSourceView.xml Thu Sep 28 13:54:12 2006
@@ -69,8 +69,9 @@
<item>
<key> <string>_body</string> </key>
<value> <string>source = context.getSourceSectionValue()\n
-if source is not None:\n
- if source.isMemberOf(context.getPortalDefaultSectionCategory()):\n
+section_category = context.portal_preferences.getPreferredSectionCategory()\n
+if source is not None and section_category:\n
+ if source.isMemberOf(section_cat):\n
return 1\n
\n
return 0\n
@@ -123,8 +124,9 @@
<value>
<tuple>
<string>_getattr_</string>
-<string>context</string>
+ <string>context</string>
<string>source</string>
+ <string>section_cat</string>
<string>None</string>
</tuple>
</value>
More information about the Erp5-report
mailing list