Commit ebba6d90 authored by Jérome Perrin's avatar Jérome Perrin

getPortalDefaultSectionCategory is deprecated



git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@10391 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 20f0184a
......@@ -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 @@ return 0\n
<value>
<tuple>
<string>_getattr_</string>
<string>context</string>
<string>context</string>
<string>source</string>
<string>section_cat</string>
<string>None</string>
</tuple>
</value>
......
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