Commit 109ed084 authored by Kevin Deldycke's avatar Kevin Deldycke

Use validation state.

Remove dummy 'Theme', 'Programme' and 'Service' columns.
Add more details as listbox columns.
Use catalog to get documents.
Filter by Web and DMS documents dynamically.

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@8661 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 586d7116
...@@ -80,10 +80,10 @@ ...@@ -80,10 +80,10 @@
<key> <string>hidden</string> </key> <key> <string>hidden</string> </key>
<value> <value>
<list> <list>
<string>listbox_translated_publication_state_title</string>
<string>listbox_title</string> <string>listbox_title</string>
<string>listbox_version</string> <string>listbox_version</string>
<string>listbox_creation_date</string> <string>listbox_creation_date</string>
<string>listbox_translated_validation_state_title</string>
</list> </list>
</value> </value>
</item> </item>
......
...@@ -260,7 +260,9 @@ ...@@ -260,7 +260,9 @@
</item> </item>
<item> <item>
<key> <string>portal_types</string> </key> <key> <string>portal_types</string> </key>
<value> <string></string> </value> <value>
<persistent> <string encoding="base64">AAAAAAAAAAI=</string> </persistent>
</value>
</item> </item>
<item> <item>
<key> <string>report_root_list</string> </key> <key> <string>report_root_list</string> </key>
...@@ -362,19 +364,7 @@ ...@@ -362,19 +364,7 @@
<string>Language</string> <string>Language</string>
</tuple> </tuple>
<tuple> <tuple>
<string>theme</string> <string>translated_portal_type</string>
<string>Theme</string>
</tuple>
<tuple>
<string>programme</string>
<string>Programme</string>
</tuple>
<tuple>
<string>service</string>
<string>Service</string>
</tuple>
<tuple>
<string>portal_type</string>
<string>Type</string> <string>Type</string>
</tuple> </tuple>
<tuple> <tuple>
...@@ -386,9 +376,7 @@ ...@@ -386,9 +376,7 @@
</item> </item>
<item> <item>
<key> <string>count_method</string> </key> <key> <string>count_method</string> </key>
<value> <value> <string></string> </value>
<persistent> <string encoding="base64">AAAAAAAAAAI=</string> </persistent>
</value>
</item> </item>
<item> <item>
<key> <string>css_class</string> </key> <key> <string>css_class</string> </key>
...@@ -493,7 +481,7 @@ ...@@ -493,7 +481,7 @@
</item> </item>
<item> <item>
<key> <string>list_action</string> </key> <key> <string>list_action</string> </key>
<value> <string>list</string> </value> <value> <string>ERP5Web_viewMyStuff</string> </value>
</item> </item>
<item> <item>
<key> <string>list_method</string> </key> <key> <string>list_method</string> </key>
...@@ -542,7 +530,24 @@ ...@@ -542,7 +530,24 @@
<item> <item>
<key> <string>search_columns</string> </key> <key> <string>search_columns</string> </key>
<value> <value>
<list/> <list>
<tuple>
<string>title</string>
<string>Title</string>
</tuple>
<tuple>
<string>creation_date</string>
<string>Creation Date</string>
</tuple>
<tuple>
<string>translated_validation_state_title</string>
<string>State</string>
</tuple>
<tuple>
<string>translated_portal_type</string>
<string>Type</string>
</tuple>
</list>
</value> </value>
</item> </item>
<item> <item>
...@@ -621,8 +626,8 @@ ...@@ -621,8 +626,8 @@
<pickle> <pickle>
<tuple> <tuple>
<tuple> <tuple>
<string>Products.Formulator.MethodField</string> <string>Products.Formulator.TALESField</string>
<string>Method</string> <string>TALESMethod</string>
</tuple> </tuple>
<none/> <none/>
</tuple> </tuple>
...@@ -630,8 +635,8 @@ ...@@ -630,8 +635,8 @@
<pickle> <pickle>
<dictionary> <dictionary>
<item> <item>
<key> <string>method_name</string> </key> <key> <string>_text</string> </key>
<value> <string>countFolder</string> </value> <value> <string>python: zip(here.getPortalWebDocumentTypeList(), here.getPortalWebDocumentTypeList()) + zip(here.getPortalDocumentTypeList(), here.getPortalDocumentTypeList())</string> </value>
</item> </item>
</dictionary> </dictionary>
</pickle> </pickle>
...@@ -650,7 +655,7 @@ ...@@ -650,7 +655,7 @@
<dictionary> <dictionary>
<item> <item>
<key> <string>method_name</string> </key> <key> <string>method_name</string> </key>
<value> <string>searchFolder</string> </value> <value> <string>portal_catalog</string> </value>
</item> </item>
</dictionary> </dictionary>
</pickle> </pickle>
......
...@@ -14,7 +14,7 @@ ...@@ -14,7 +14,7 @@
<dictionary> <dictionary>
<item> <item>
<key> <string>id</string> </key> <key> <string>id</string> </key>
<value> <string>listbox_programme</string> </value> <value> <string>listbox_translated_validation_state_title</string> </value>
</item> </item>
<item> <item>
<key> <string>message_values</string> </key> <key> <string>message_values</string> </key>
...@@ -120,14 +120,14 @@ ...@@ -120,14 +120,14 @@
</item> </item>
<item> <item>
<key> <string>css_class</string> </key> <key> <string>css_class</string> </key>
<value> <string></string> </value>
</item>
<item>
<key> <string>default</string> </key>
<value> <value>
<persistent> <string encoding="base64">AAAAAAAAAAI=</string> </persistent> <persistent> <string encoding="base64">AAAAAAAAAAI=</string> </persistent>
</value> </value>
</item> </item>
<item>
<key> <string>default</string> </key>
<value> <string></string> </value>
</item>
<item> <item>
<key> <string>description</string> </key> <key> <string>description</string> </key>
<value> <string></string> </value> <value> <string></string> </value>
...@@ -245,7 +245,7 @@ ...@@ -245,7 +245,7 @@
</item> </item>
<item> <item>
<key> <string>title</string> </key> <key> <string>title</string> </key>
<value> <string>listbox_programme</string> </value> <value> <string>translated_validation_state_title</string> </value>
</item> </item>
<item> <item>
<key> <string>truncate</string> </key> <key> <string>truncate</string> </key>
...@@ -279,7 +279,7 @@ ...@@ -279,7 +279,7 @@
<dictionary> <dictionary>
<item> <item>
<key> <string>_text</string> </key> <key> <string>_text</string> </key>
<value> <string>python: "Programme"</string> </value> <value> <string>python: cell.getValidationState()</string> </value>
</item> </item>
</dictionary> </dictionary>
</pickle> </pickle>
......
...@@ -75,9 +75,6 @@ ...@@ -75,9 +75,6 @@
<value> <value>
<list> <list>
<string>listbox_modification_date</string> <string>listbox_modification_date</string>
<string>listbox_theme</string>
<string>listbox_programme</string>
<string>listbox_service</string>
</list> </list>
</value> </value>
</item> </item>
......
...@@ -357,18 +357,6 @@ ...@@ -357,18 +357,6 @@
<string>modification_date</string> <string>modification_date</string>
<string>Last Change</string> <string>Last Change</string>
</tuple> </tuple>
<tuple>
<string>programme</string>
<string>Programme</string>
</tuple>
<tuple>
<string>service</string>
<string>Service</string>
</tuple>
<tuple>
<string>theme</string>
<string>Theme</string>
</tuple>
</list> </list>
</value> </value>
</item> </item>
...@@ -416,18 +404,6 @@ ...@@ -416,18 +404,6 @@
<string>modification_date</string> <string>modification_date</string>
<string>Last Change</string> <string>Last Change</string>
</tuple> </tuple>
<tuple>
<string>programme</string>
<string>Programme</string>
</tuple>
<tuple>
<string>service</string>
<string>Service</string>
</tuple>
<tuple>
<string>theme</string>
<string>Theme</string>
</tuple>
</list> </list>
</value> </value>
</item> </item>
......
...@@ -72,9 +72,6 @@ ...@@ -72,9 +72,6 @@
, (\'reference\', \'Reference\')\n , (\'reference\', \'Reference\')\n
, (\'version\', \'Version\')\n , (\'version\', \'Version\')\n
, (\'language\', \'Language\')\n , (\'language\', \'Language\')\n
, (\'theme\', \'Theme\')\n
, (\'programme\', \'Programme\')\n
, (\'service\', \'Service\')\n
, (\'WebPage_getModificationDate\', \'Last Change\')\n , (\'WebPage_getModificationDate\', \'Last Change\')\n
, (\'portal_type\', \'Type\')\n , (\'portal_type\', \'Type\')\n
]\n ]\n
......
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