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 @@ ...@@ -186,6 +186,10 @@
<key> <string>columns</string> </key> <key> <string>columns</string> </key>
<value> <string></string> </value> <value> <string></string> </value>
</item> </item>
<item>
<key> <string>count_method</string> </key>
<value> <string></string> </value>
</item>
<item> <item>
<key> <string>css_class</string> </key> <key> <string>css_class</string> </key>
<value> <string></string> </value> <value> <string></string> </value>
...@@ -251,9 +255,15 @@ ...@@ -251,9 +255,15 @@
<value> <string></string> </value> <value> <string></string> </value>
</item> </item>
<item> <item>
<key> <string>portal_types</string> </key> <key> <string>page_template</string> </key>
<value> <string></string> </value> <value> <string></string> </value>
</item> </item>
<item>
<key> <string>portal_types</string> </key>
<value>
<persistent> <string encoding="base64">AAAAAAAAAAI=</string> </persistent>
</value>
</item>
<item> <item>
<key> <string>report_root_list</string> </key> <key> <string>report_root_list</string> </key>
<value> <string></string> </value> <value> <string></string> </value>
...@@ -350,7 +360,7 @@ ...@@ -350,7 +360,7 @@
<string>Index</string> <string>Index</string>
</tuple> </tuple>
<tuple> <tuple>
<string>translated_simulation_state</string> <string>translated_simulation_state_title</string>
<string>State</string> <string>State</string>
</tuple> </tuple>
</list> </list>
...@@ -388,11 +398,7 @@ ...@@ -388,11 +398,7 @@
<value> <value>
<list> <list>
<tuple> <tuple>
<string>id</string> <string>translated_portal_type</string>
<string>ID</string>
</tuple>
<tuple>
<string>portal_type</string>
<string>Type</string> <string>Type</string>
</tuple> </tuple>
<tuple> <tuple>
...@@ -420,7 +426,7 @@ ...@@ -420,7 +426,7 @@
<string>Index</string> <string>Index</string>
</tuple> </tuple>
<tuple> <tuple>
<string>translated_simulation_state</string> <string>translated_simulation_state_title</string>
<string>State</string> <string>State</string>
</tuple> </tuple>
</list> </list>
...@@ -441,7 +447,12 @@ ...@@ -441,7 +447,12 @@
<item> <item>
<key> <string>default_params</string> </key> <key> <string>default_params</string> </key>
<value> <value>
<list/> <list>
<tuple>
<string>checked_permission</string>
<string>View</string>
</tuple>
</list>
</value> </value>
</item> </item>
<item> <item>
...@@ -497,7 +508,7 @@ ...@@ -497,7 +508,7 @@
<item> <item>
<key> <string>list_method</string> </key> <key> <string>list_method</string> </key>
<value> <value>
<persistent> <string encoding="base64">AAAAAAAAAAI=</string> </persistent> <persistent> <string encoding="base64">AAAAAAAAAAM=</string> </persistent>
</value> </value>
</item> </item>
<item> <item>
...@@ -513,44 +524,7 @@ ...@@ -513,44 +524,7 @@
<item> <item>
<key> <string>portal_types</string> </key> <key> <string>portal_types</string> </key>
<value> <value>
<list> <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>
</value> </value>
</item> </item>
<item> <item>
...@@ -630,6 +604,25 @@ ...@@ -630,6 +604,25 @@
</pickle> </pickle>
</record> </record>
<record id="2" aka="AAAAAAAAAAI="> <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> <pickle>
<tuple> <tuple>
<tuple> <tuple>
...@@ -643,7 +636,7 @@ ...@@ -643,7 +636,7 @@
<dictionary> <dictionary>
<item> <item>
<key> <string>method_name</string> </key> <key> <string>method_name</string> </key>
<value> <string>getSourceProjectRelatedValueList</string> </value> <value> <string>getFollowUpRelatedValueList</string> </value>
</item> </item>
</dictionary> </dictionary>
</pickle> </pickle>
......
301 302
\ No newline at end of file \ 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