From 26080a40eb757fbc2fbc1848b567a5122ccd73a3 Mon Sep 17 00:00:00 2001
From: Kevin Deldycke <kevin@nexedi.com>
Date: Sun, 23 Jul 2006 15:58:22 +0000
Subject: [PATCH] Filter Worklist on Portal Type

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@8693 20353a03-c40f-0410-a6d1-a30d3c3de9de
---
 .../variables/portal_type.xml                 | 60 +++++++++++++++++++
 .../publication_workflow/worklists/draft.xml  |  8 +++
 2 files changed, 68 insertions(+)
 create mode 100644 bt5/erp5_web/WorkflowTemplateItem/portal_workflow/publication_workflow/variables/portal_type.xml

diff --git a/bt5/erp5_web/WorkflowTemplateItem/portal_workflow/publication_workflow/variables/portal_type.xml b/bt5/erp5_web/WorkflowTemplateItem/portal_workflow/publication_workflow/variables/portal_type.xml
new file mode 100644
index 0000000000..aaacee8edc
--- /dev/null
+++ b/bt5/erp5_web/WorkflowTemplateItem/portal_workflow/publication_workflow/variables/portal_type.xml
@@ -0,0 +1,60 @@
+<?xml version="1.0"?>
+<ZopeData>
+  <record id="1" aka="AAAAAAAAAAE=">
+    <pickle>
+      <tuple>
+        <tuple>
+          <string>Products.DCWorkflow.Variables</string>
+          <string>VariableDefinition</string>
+        </tuple>
+        <none/>
+      </tuple>
+    </pickle>
+    <pickle>
+      <dictionary>
+        <item>
+            <key> <string>__ac_local_roles__</string> </key>
+            <value>
+              <none/>
+            </value>
+        </item>
+        <item>
+            <key> <string>default_expr</string> </key>
+            <value>
+              <none/>
+            </value>
+        </item>
+        <item>
+            <key> <string>default_value</string> </key>
+            <value> <string></string> </value>
+        </item>
+        <item>
+            <key> <string>description</string> </key>
+            <value> <string></string> </value>
+        </item>
+        <item>
+            <key> <string>for_catalog</string> </key>
+            <value> <int>1</int> </value>
+        </item>
+        <item>
+            <key> <string>for_status</string> </key>
+            <value> <int>0</int> </value>
+        </item>
+        <item>
+            <key> <string>id</string> </key>
+            <value> <string>portal_type</string> </value>
+        </item>
+        <item>
+            <key> <string>info_guard</string> </key>
+            <value>
+              <none/>
+            </value>
+        </item>
+        <item>
+            <key> <string>update_always</string> </key>
+            <value> <int>0</int> </value>
+        </item>
+      </dictionary>
+    </pickle>
+  </record>
+</ZopeData>
diff --git a/bt5/erp5_web/WorkflowTemplateItem/portal_workflow/publication_workflow/worklists/draft.xml b/bt5/erp5_web/WorkflowTemplateItem/portal_workflow/publication_workflow/worklists/draft.xml
index 651b264c1a..8d909fa8fd 100644
--- a/bt5/erp5_web/WorkflowTemplateItem/portal_workflow/publication_workflow/worklists/draft.xml
+++ b/bt5/erp5_web/WorkflowTemplateItem/portal_workflow/publication_workflow/worklists/draft.xml
@@ -79,6 +79,14 @@ Base_viewSearchResultList?validation_state=draft&reset=1
             <key> <string>_container</string> </key>
             <value>
               <dictionary>
+                <item>
+                    <key> <string>portal_type</string> </key>
+                    <value>
+                      <tuple>
+                        <string>Web Page</string>
+                      </tuple>
+                    </value>
+                </item>
                 <item>
                     <key> <string>validation_state</string> </key>
                     <value>
-- 
2.30.9