Commit 2a195096 authored by Jérome Perrin's avatar Jérome Perrin

use Base_getPreferredSectionItemList

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@40805 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent f4b64548
......@@ -50,14 +50,9 @@
</item>
<item>
<key> <string>_body</string> </key>
<value> <string>section_item_list = context.Base_getPreferredSectionItemList(\n
portal_type=\'Organisation\', validation_state=\'validated\')\n
current_destination_section = context.getDestinationSection()\n
if current_destination_section is not None and\\\n
current_destination_section not in zip(*section_item_list)[1]:\n
section_item_list.append((context.getDestinationSectionTitle(), context.getDestinationSection()))\n
\n
return section_item_list\n
<value> <string># deprecated, just use this in TALES:\n
return context.Base_getPreferredSectionItemList(portal_type=\'Organisation\',\n
validation_state=\'validated\', base_category=\'destination_section\')\n
</string> </value>
</item>
<item>
......@@ -96,12 +91,6 @@ return section_item_list\n
<tuple>
<string>_getattr_</string>
<string>context</string>
<string>section_item_list</string>
<string>current_destination_section</string>
<string>None</string>
<string>_getitem_</string>
<string>_apply_</string>
<string>zip</string>
</tuple>
</value>
</item>
......
......@@ -50,14 +50,9 @@
</item>
<item>
<key> <string>_body</string> </key>
<value> <string>section_item_list = context.Base_getPreferredSectionItemList(\n
portal_type=\'Organisation\', validation_state=\'validated\')\n
current_source_section = context.getSourceSection()\n
if current_source_section is not None and\\\n
current_source_section not in zip(*section_item_list)[1]:\n
section_item_list.append((context.getSourceSectionTitle(), context.getSourceSection()))\n
\n
return section_item_list\n
<value> <string># deprecated, just use this in TALES:\n
return context.Base_getPreferredSectionItemList(portal_type=\'Organisation\',\n
validation_state=\'validated\', base_category=\'source_section\')\n
</string> </value>
</item>
<item>
......@@ -96,12 +91,6 @@ return section_item_list\n
<tuple>
<string>_getattr_</string>
<string>context</string>
<string>section_item_list</string>
<string>current_source_section</string>
<string>None</string>
<string>_getitem_</string>
<string>_apply_</string>
<string>zip</string>
</tuple>
</value>
</item>
......
......@@ -269,7 +269,7 @@
<dictionary>
<item>
<key> <string>_text</string> </key>
<value> <string>here/AccountingTransaction_getDestinationSectionItemList</string> </value>
<value> <string>python: context.Base_getPreferredSectionItemList(portal_type=\'Organisation\', validation_state=\'validated\', base_category=\'destination_section\')</string> </value>
</item>
</dictionary>
</pickle>
......
......@@ -269,7 +269,7 @@
<dictionary>
<item>
<key> <string>_text</string> </key>
<value> <string>python:here.AccountingTransaction_getSourceSectionItemList()</string> </value>
<value> <string>python: context.Base_getPreferredSectionItemList(portal_type=\'Organisation\', validation_state=\'validated\', base_category=\'source_section\')</string> </value>
</item>
</dictionary>
</pickle>
......
1408
\ No newline at end of file
1409
\ 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