Commit 570d0a7c authored by Nicolas Delaby's avatar Nicolas Delaby

Deprecate usage of Delivery_getSourceSectionItemList, use instead new generic script

Base_getPreferredSectionItemList

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@40846 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 48bb78ff
......@@ -11,8 +11,8 @@
<value>
<list>
<string>description</string>
<string>title</string>
<string>items</string>
<string>title</string>
</list>
</value>
</item>
......@@ -54,6 +54,10 @@
<key> <string>tales</string> </key>
<value>
<dictionary>
<item>
<key> <string>description</string> </key>
<value> <string></string> </value>
</item>
<item>
<key> <string>field_id</string> </key>
<value> <string></string> </value>
......@@ -72,6 +76,10 @@
<key> <string>target</string> </key>
<value> <string></string> </value>
</item>
<item>
<key> <string>title</string> </key>
<value> <string></string> </value>
</item>
</dictionary>
</value>
</item>
......@@ -91,6 +99,12 @@
<key> <string>form_id</string> </key>
<value> <string>Base_viewFieldLibrary</string> </value>
</item>
<item>
<key> <string>items</string> </key>
<value>
<list/>
</value>
</item>
<item>
<key> <string>target</string> </key>
<value> <string>Click to edit the target</string> </value>
......@@ -113,7 +127,7 @@
<dictionary>
<item>
<key> <string>_text</string> </key>
<value> <string>here/Delivery_getSourceSectionItemList</string> </value>
<value> <string>python:here.Base_getPreferredSectionItemList(portal_type=\'Organisation\', validation_state=\'validated\', base_category=\'source_section\')</string> </value>
</item>
</dictionary>
</pickle>
......
......@@ -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>
......
1053
\ No newline at end of file
1055
\ 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