Commit 252ec1a7 authored by Nicolas Delaby's avatar Nicolas Delaby

Add log message to deprecate usage of Delivery_getDestinationSectionItemList

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@40856 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 6b88e574
......@@ -50,7 +50,10 @@
</item>
<item>
<key> <string>_body</string> </key>
<value> <string>section_cat = context.portal_preferences.getPreferredSectionCategory()\n
<value> <string>from Products.ERP5Type.Log import log\n
log(\'Deprecated: use Base_getPreferredSectionItemList instead.\')\n
\n
section_cat = context.portal_preferences.getPreferredSectionCategory()\n
if section_cat in (None, \'\') : \n
section_cat = context.getPortalDefaultSectionCategory()\n
\n
......@@ -109,6 +112,8 @@ return [(\'\', \'\')] + [(i.getTitle(), i.getRelativeUrl()) for i in result]\n
<key> <string>co_varnames</string> </key>
<value>
<tuple>
<string>Products.ERP5Type.Log</string>
<string>log</string>
<string>_getattr_</string>
<string>context</string>
<string>section_cat</string>
......
1059
\ No newline at end of file
1060
\ No newline at end of file
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