Commit 404e2898 authored by Jérome Perrin's avatar Jérome Perrin

Project_viewDocumentList/listbox:

* use  getPortalDocumentTypeList as list method, as relationship between Document and Projects changed.
* specify checked_permission | View in parameter_list (this rocks)
* use getPortalDocumentTypeList instead of referencing obsolete portal types

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@16653 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 73ff1f62
......@@ -186,6 +186,10 @@
<key> <string>columns</string> </key>
<value> <string></string> </value>
</item>
<item>
<key> <string>count_method</string> </key>
<value> <string></string> </value>
</item>
<item>
<key> <string>css_class</string> </key>
<value> <string></string> </value>
......@@ -251,9 +255,15 @@
<value> <string></string> </value>
</item>
<item>
<key> <string>portal_types</string> </key>
<key> <string>page_template</string> </key>
<value> <string></string> </value>
</item>
<item>
<key> <string>portal_types</string> </key>
<value>
<persistent> <string encoding="base64">AAAAAAAAAAI=</string> </persistent>
</value>
</item>
<item>
<key> <string>report_root_list</string> </key>
<value> <string></string> </value>
......@@ -350,7 +360,7 @@
<string>Index</string>
</tuple>
<tuple>
<string>translated_simulation_state</string>
<string>translated_simulation_state_title</string>
<string>State</string>
</tuple>
</list>
......@@ -388,11 +398,7 @@
<value>
<list>
<tuple>
<string>id</string>
<string>ID</string>
</tuple>
<tuple>
<string>portal_type</string>
<string>translated_portal_type</string>
<string>Type</string>
</tuple>
<tuple>
......@@ -420,7 +426,7 @@
<string>Index</string>
</tuple>
<tuple>
<string>translated_simulation_state</string>
<string>translated_simulation_state_title</string>
<string>State</string>
</tuple>
</list>
......@@ -441,7 +447,12 @@
<item>
<key> <string>default_params</string> </key>
<value>
<list/>
<list>
<tuple>
<string>checked_permission</string>
<string>View</string>
</tuple>
</list>
</value>
</item>
<item>
......@@ -497,7 +508,7 @@
<item>
<key> <string>list_method</string> </key>
<value>
<persistent> <string encoding="base64">AAAAAAAAAAI=</string> </persistent>
<persistent> <string encoding="base64">AAAAAAAAAAM=</string> </persistent>
</value>
</item>
<item>
......@@ -513,44 +524,7 @@
<item>
<key> <string>portal_types</string> </key>
<value>
<list>
<tuple>
<string>ImageDocument</string>
<string>ImageDocument</string>
</tuple>
<tuple>
<string>Presentation</string>
<string>Presentation</string>
</tuple>
<tuple>
<string>Text</string>
<string>Text</string>
</tuple>
<tuple>
<string>Spreadsheet</string>
<string>Spreadsheet</string>
</tuple>
<tuple>
<string>DMS File</string>
<string>DMS File</string>
</tuple>
<tuple>
<string>External Web Page</string>
<string>External Web Page</string>
</tuple>
<tuple>
<string>External Library File</string>
<string>External Library File</string>
</tuple>
<tuple>
<string>Graphic</string>
<string>Graphic</string>
</tuple>
<tuple>
<string>PdfDocument</string>
<string>PdfDocument</string>
</tuple>
</list>
<list/>
</value>
</item>
<item>
......@@ -630,6 +604,25 @@
</pickle>
</record>
<record id="2" aka="AAAAAAAAAAI=">
<pickle>
<tuple>
<tuple>
<string>Products.Formulator.TALESField</string>
<string>TALESMethod</string>
</tuple>
<none/>
</tuple>
</pickle>
<pickle>
<dictionary>
<item>
<key> <string>_text</string> </key>
<value> <string>python: [(t, t) for t in context.getPortalDocumentTypeList()]</string> </value>
</item>
</dictionary>
</pickle>
</record>
<record id="3" aka="AAAAAAAAAAM=">
<pickle>
<tuple>
<tuple>
......@@ -643,7 +636,7 @@
<dictionary>
<item>
<key> <string>method_name</string> </key>
<value> <string>getSourceProjectRelatedValueList</string> </value>
<value> <string>getFollowUpRelatedValueList</string> </value>
</item>
</dictionary>
</pickle>
......
301
\ No newline at end of file
302
\ 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