[Erp5-report] r20054 - in /erp5/trunk/bt5/erp5_project: PathTemplateItem/portal_domains/ Sk...

nobody at svn.erp5.org nobody at svn.erp5.org
Wed Mar 19 17:48:04 CET 2008


Author: romain
Date: Wed Mar 19 17:48:00 2008
New Revision: 20054

URL: http://svn.erp5.org?rev=20054&view=rev
Log:
Add validated_project_domain, which can be used to filter the Tasks/Task Reports on their respective module view.

Added:
    erp5/trunk/bt5/erp5_project/PathTemplateItem/portal_domains/validated_project_domain.xml
    erp5/trunk/bt5/erp5_project/SkinTemplateItem/portal_skins/erp5_project/Base_generateValidatedProjectDomain.xml
Modified:
    erp5/trunk/bt5/erp5_project/SkinTemplateItem/portal_skins/erp5_project/TaskModule_viewTaskList/listbox.xml
    erp5/trunk/bt5/erp5_project/SkinTemplateItem/portal_skins/erp5_project/TaskReportModule_viewTaskReportList/listbox.xml
    erp5/trunk/bt5/erp5_project/bt/revision
    erp5/trunk/bt5/erp5_project/bt/template_path_list

Added: erp5/trunk/bt5/erp5_project/PathTemplateItem/portal_domains/validated_project_domain.xml
URL: http://svn.erp5.org/erp5/trunk/bt5/erp5_project/PathTemplateItem/portal_domains/validated_project_domain.xml?rev=20054&view=auto
==============================================================================
--- erp5/trunk/bt5/erp5_project/PathTemplateItem/portal_domains/validated_project_domain.xml (added)
+++ erp5/trunk/bt5/erp5_project/PathTemplateItem/portal_domains/validated_project_domain.xml Wed Mar 19 17:48:00 2008
@@ -1,0 +1,71 @@
+<?xml version="1.0"?>
+<ZopeData>
+  <record id="1" aka="AAAAAAAAAAE=">
+    <pickle>
+      <tuple>
+        <global name="BaseDomain" module="Products.ERP5Type.Document.BaseDomain"/>
+        <tuple/>
+      </tuple>
+    </pickle>
+    <pickle>
+      <dictionary>
+        <item>
+            <key> <string>__ac_local_roles__</string> </key>
+            <value>
+              <none/>
+            </value>
+        </item>
+        <item>
+            <key> <string>_identity_criterion</string> </key>
+            <value>
+              <dictionary/>
+            </value>
+        </item>
+        <item>
+            <key> <string>_owner</string> </key>
+            <value>
+              <none/>
+            </value>
+        </item>
+        <item>
+            <key> <string>_range_criterion</string> </key>
+            <value>
+              <dictionary/>
+            </value>
+        </item>
+        <item>
+            <key> <string>description</string> </key>
+            <value>
+              <none/>
+            </value>
+        </item>
+        <item>
+            <key> <string>domain_generator_method_id</string> </key>
+            <value> <string>Base_generateValidatedProjectDomain</string> </value>
+        </item>
+        <item>
+            <key> <string>id</string> </key>
+            <value> <string>validated_project_domain</string> </value>
+        </item>
+        <item>
+            <key> <string>last_id</string> </key>
+            <value> <string>2008</string> </value>
+        </item>
+        <item>
+            <key> <string>portal_type</string> </key>
+            <value> <string>Base Domain</string> </value>
+        </item>
+        <item>
+            <key> <string>title</string> </key>
+            <value> <string>Validated Project Domain</string> </value>
+        </item>
+        <item>
+            <key> <string>uid</string> </key>
+            <value>
+              <none/>
+            </value>
+        </item>
+      </dictionary>
+    </pickle>
+  </record>
+</ZopeData>

Added: erp5/trunk/bt5/erp5_project/SkinTemplateItem/portal_skins/erp5_project/Base_generateValidatedProjectDomain.xml
URL: http://svn.erp5.org/erp5/trunk/bt5/erp5_project/SkinTemplateItem/portal_skins/erp5_project/Base_generateValidatedProjectDomain.xml?rev=20054&view=auto
==============================================================================
--- erp5/trunk/bt5/erp5_project/SkinTemplateItem/portal_skins/erp5_project/Base_generateValidatedProjectDomain.xml (added)
+++ erp5/trunk/bt5/erp5_project/SkinTemplateItem/portal_skins/erp5_project/Base_generateValidatedProjectDomain.xml Wed Mar 19 17:48:00 2008
@@ -1,0 +1,182 @@
+<?xml version="1.0"?>
+<ZopeData>
+  <record id="1" aka="AAAAAAAAAAE=">
+    <pickle>
+      <tuple>
+        <global name="PythonScript" module="Products.PythonScripts.PythonScript"/>
+        <tuple/>
+      </tuple>
+    </pickle>
+    <pickle>
+      <dictionary>
+        <item>
+            <key> <string>Python_magic</string> </key>
+            <value>
+              <none/>
+            </value>
+        </item>
+        <item>
+            <key> <string>Script_magic</string> </key>
+            <value> <int>3</int> </value>
+        </item>
+        <item>
+            <key> <string>__ac_local_roles__</string> </key>
+            <value>
+              <none/>
+            </value>
+        </item>
+        <item>
+            <key> <string>_bind_names</string> </key>
+            <value>
+              <object>
+                <klass>
+                  <global name="NameAssignments" module="Shared.DC.Scripts.Bindings"/>
+                </klass>
+                <tuple/>
+                <state>
+                  <dictionary>
+                    <item>
+                        <key> <string>_asgns</string> </key>
+                        <value>
+                          <dictionary>
+                            <item>
+                                <key> <string>name_container</string> </key>
+                                <value> <string>container</string> </value>
+                            </item>
+                            <item>
+                                <key> <string>name_context</string> </key>
+                                <value> <string>context</string> </value>
+                            </item>
+                            <item>
+                                <key> <string>name_m_self</string> </key>
+                                <value> <string>script</string> </value>
+                            </item>
+                            <item>
+                                <key> <string>name_subpath</string> </key>
+                                <value> <string>traverse_subpath</string> </value>
+                            </item>
+                          </dictionary>
+                        </value>
+                    </item>
+                  </dictionary>
+                </state>
+              </object>
+            </value>
+        </item>
+        <item>
+            <key> <string>_body</string> </key>
+            <value> <string>request = context.REQUEST\n
+domain_list = []\n
+\n
+category_list = []\n
+if depth == 0:\n
+  category_list = [x for x in context.portal_catalog(portal_type=\'Project\',\n
+                                                     validation_state=\'validated\')]\n
+else:\n
+  parent_object = context.restrictedTraverse(parent.parent_url)\n
+  category_list = parent_object.contentValues(portal_type=\'Project Line\')\n
+\n
+for category in category_list:\n
+  domain = parent.generateTempDomain(id=\'sub%s\' % category.getId())\n
+  domain.edit(title = category.getTitle(),\n
+              membership_criterion_base_category = (\'source_project\', ), \n
+              membership_criterion_category = (\'source_project/%s\' % category.getRelativeUrl(),),\n
+              domain_generator_method_id = script.id,\n
+              parent_url=category.getRelativeUrl(),\n
+              uid = category.getUid())\n
+                \n
+  domain_list.append(domain)\n
+\n
+return domain_list\n
+</string> </value>
+        </item>
+        <item>
+            <key> <string>_code</string> </key>
+            <value>
+              <none/>
+            </value>
+        </item>
+        <item>
+            <key> <string>_filepath</string> </key>
+            <value>
+              <none/>
+            </value>
+        </item>
+        <item>
+            <key> <string>_owner</string> </key>
+            <value>
+              <none/>
+            </value>
+        </item>
+        <item>
+            <key> <string>_params</string> </key>
+            <value> <string>depth, parent, **kw</string> </value>
+        </item>
+        <item>
+            <key> <string>errors</string> </key>
+            <value>
+              <tuple/>
+            </value>
+        </item>
+        <item>
+            <key> <string>func_code</string> </key>
+            <value>
+              <object>
+                <klass>
+                  <global name="FuncCode" module="Shared.DC.Scripts.Signature"/>
+                </klass>
+                <tuple/>
+                <state>
+                  <dictionary>
+                    <item>
+                        <key> <string>co_argcount</string> </key>
+                        <value> <int>2</int> </value>
+                    </item>
+                    <item>
+                        <key> <string>co_varnames</string> </key>
+                        <value>
+                          <tuple>
+                            <string>depth</string>
+                            <string>parent</string>
+                            <string>kw</string>
+                            <string>_getattr_</string>
+                            <string>context</string>
+                            <string>request</string>
+                            <string>domain_list</string>
+                            <string>category_list</string>
+                            <string>append</string>
+                            <string>$append0</string>
+                            <string>_getiter_</string>
+                            <string>x</string>
+                            <string>parent_object</string>
+                            <string>category</string>
+                            <string>domain</string>
+                            <string>script</string>
+                          </tuple>
+                        </value>
+                    </item>
+                  </dictionary>
+                </state>
+              </object>
+            </value>
+        </item>
+        <item>
+            <key> <string>func_defaults</string> </key>
+            <value>
+              <none/>
+            </value>
+        </item>
+        <item>
+            <key> <string>id</string> </key>
+            <value> <string>Base_generateValidatedProjectDomain</string> </value>
+        </item>
+        <item>
+            <key> <string>warnings</string> </key>
+            <value>
+              <tuple/>
+            </value>
+        </item>
+      </dictionary>
+    </pickle>
+  </record>
+</ZopeData>

Modified: erp5/trunk/bt5/erp5_project/SkinTemplateItem/portal_skins/erp5_project/TaskModule_viewTaskList/listbox.xml
URL: http://svn.erp5.org/erp5/trunk/bt5/erp5_project/SkinTemplateItem/portal_skins/erp5_project/TaskModule_viewTaskList/listbox.xml?rev=20054&r1=20053&r2=20054&view=diff
==============================================================================
--- erp5/trunk/bt5/erp5_project/SkinTemplateItem/portal_skins/erp5_project/TaskModule_viewTaskList/listbox.xml (original)
+++ erp5/trunk/bt5/erp5_project/SkinTemplateItem/portal_skins/erp5_project/TaskModule_viewTaskList/listbox.xml Wed Mar 19 17:48:00 2008
@@ -90,7 +90,7 @@
                     <value> <int>0</int> </value>
                 </item>
                 <item>
-                    <key> <string>all_columns</string> </key>
+                    <key>                 <string>all_columns</string> </key>
                     <value>
                       <list>
                         <tuple>
@@ -147,7 +147,7 @@
                     </value>
                 </item>
                 <item>
-                    <key> <string>columns</string> </key>
+                    <key>                 <string>columns</string> </key>
                     <value>
                       <list>
                         <tuple>
@@ -194,22 +194,26 @@
                     </value>
                 </item>
                 <item>
-                    <key> <string>domain_root_list</string> </key>
+                    <key>                 <string>domain_root_list</string> </key>
                     <value>
                       <list>
                         <tuple>
                           <string>region</string>
                           <string>Region</string>
                         </tuple>
-                      </list>
-                    </value>
-                </item>
-                <item>
-                    <key> <string>domain_tree</string> </key>
+                        <tuple>
+                          <string>validated_project_domain</string>
+                          <string>Open Project</string>
+                        </tuple>
+                      </list>
+                    </value>
+                </item>
+                <item>
+                    <key>                 <string>domain_tree</string> </key>
                     <value> <int>1</int> </value>
                 </item>
                 <item>
-                    <key> <string>editable_columns</string> </key>
+                    <key>                 <string>editable_columns</string> </key>
                     <value>
                       <list>
                         <tuple>
@@ -232,7 +236,7 @@
                     <value> <string>Base_viewFieldLibrary</string> </value>
                 </item>
                 <item>
-                    <key> <string>portal_types</string> </key>
+                    <key>                 <string>portal_types</string> </key>
                     <value>
                       <list>
                         <tuple>
@@ -243,22 +247,26 @@
                     </value>
                 </item>
                 <item>
-                    <key> <string>report_root_list</string> </key>
+                    <key>                 <string>report_root_list</string> </key>
                     <value>
                       <list>
                         <tuple>
                           <string>region</string>
                           <string>Region</string>
                         </tuple>
-                      </list>
-                    </value>
-                </item>
-                <item>
-                    <key> <string>report_tree</string> </key>
+                        <tuple>
+                          <string>validated_project_domain</string>
+                          <string>Open Project</string>
+                        </tuple>
+                      </list>
+                    </value>
+                </item>
+                <item>
+                    <key>                 <string>report_tree</string> </key>
                     <value> <int>1</int> </value>
                 </item>
                 <item>
-                    <key> <string>search_columns</string> </key>
+                    <key>                 <string>search_columns</string> </key>
                     <value>
                       <list>
                         <tuple>
@@ -297,11 +305,11 @@
                     </value>
                 </item>
                 <item>
-                    <key> <string>selection_name</string> </key>
+                    <key>                 <string>selection_name</string> </key>
                     <value> <string>task_module_selection</string> </value>
                 </item>
                 <item>
-                    <key> <string>sort</string> </key>
+                    <key>                 <string>sort</string> </key>
                     <value>
                       <list>
                         <tuple>
@@ -316,7 +324,7 @@
                     <value> <string>Click to edit the target</string> </value>
                 </item>
                 <item>
-                    <key> <string>title</string> </key>
+                    <key>                 <string>title</string> </key>
                     <value> <string>Tasks</string> </value>
                 </item>
               </dictionary>

Modified: erp5/trunk/bt5/erp5_project/SkinTemplateItem/portal_skins/erp5_project/TaskReportModule_viewTaskReportList/listbox.xml
URL: http://svn.erp5.org/erp5/trunk/bt5/erp5_project/SkinTemplateItem/portal_skins/erp5_project/TaskReportModule_viewTaskReportList/listbox.xml?rev=20054&r1=20053&r2=20054&view=diff
==============================================================================
--- erp5/trunk/bt5/erp5_project/SkinTemplateItem/portal_skins/erp5_project/TaskReportModule_viewTaskReportList/listbox.xml (original)
+++ erp5/trunk/bt5/erp5_project/SkinTemplateItem/portal_skins/erp5_project/TaskReportModule_viewTaskReportList/listbox.xml Wed Mar 19 17:48:00 2008
@@ -90,7 +90,7 @@
                     <value> <int>0</int> </value>
                 </item>
                 <item>
-                    <key> <string>all_columns</string> </key>
+                    <key>                 <string>all_columns</string> </key>
                     <value>
                       <list>
                         <tuple>
@@ -143,7 +143,7 @@
                     </value>
                 </item>
                 <item>
-                    <key> <string>columns</string> </key>
+                    <key>                 <string>columns</string> </key>
                     <value>
                       <list>
                         <tuple>
@@ -190,22 +190,26 @@
                     </value>
                 </item>
                 <item>
-                    <key> <string>domain_root_list</string> </key>
+                    <key>                 <string>domain_root_list</string> </key>
                     <value>
                       <list>
                         <tuple>
                           <string>region</string>
                           <string>region</string>
                         </tuple>
-                      </list>
-                    </value>
-                </item>
-                <item>
-                    <key> <string>domain_tree</string> </key>
+                        <tuple>
+                          <string>validated_project_domain</string>
+                          <string>Open Project</string>
+                        </tuple>
+                      </list>
+                    </value>
+                </item>
+                <item>
+                    <key>                 <string>domain_tree</string> </key>
                     <value> <int>1</int> </value>
                 </item>
                 <item>
-                    <key> <string>editable_columns</string> </key>
+                    <key>                 <string>editable_columns</string> </key>
                     <value>
                       <list>
                         <tuple>
@@ -228,7 +232,7 @@
                     <value> <string>Base_viewFieldLibrary</string> </value>
                 </item>
                 <item>
-                    <key> <string>portal_types</string> </key>
+                    <key>                 <string>portal_types</string> </key>
                     <value>
                       <list>
                         <tuple>
@@ -239,22 +243,26 @@
                     </value>
                 </item>
                 <item>
-                    <key> <string>report_root_list</string> </key>
+                    <key>                 <string>report_root_list</string> </key>
                     <value>
                       <list>
                         <tuple>
                           <string>region</string>
                           <string>region</string>
                         </tuple>
-                      </list>
-                    </value>
-                </item>
-                <item>
-                    <key> <string>report_tree</string> </key>
+                        <tuple>
+                          <string>validated_project_domain</string>
+                          <string>Open Project</string>
+                        </tuple>
+                      </list>
+                    </value>
+                </item>
+                <item>
+                    <key>                 <string>report_tree</string> </key>
                     <value> <int>1</int> </value>
                 </item>
                 <item>
-                    <key> <string>search_columns</string> </key>
+                    <key>                 <string>search_columns</string> </key>
                     <value>
                       <list>
                         <tuple>
@@ -293,11 +301,11 @@
                     </value>
                 </item>
                 <item>
-                    <key> <string>selection_name</string> </key>
+                    <key>                 <string>selection_name</string> </key>
                     <value> <string>task_report_module_selection</string> </value>
                 </item>
                 <item>
-                    <key> <string>sort</string> </key>
+                    <key>                 <string>sort</string> </key>
                     <value>
                       <list>
                         <tuple>
@@ -312,7 +320,7 @@
                     <value> <string>Click to edit the target</string> </value>
                 </item>
                 <item>
-                    <key> <string>title</string> </key>
+                    <key>                 <string>title</string> </key>
                     <value> <string>Task Reports</string> </value>
                 </item>
               </dictionary>

Modified: erp5/trunk/bt5/erp5_project/bt/revision
URL: http://svn.erp5.org/erp5/trunk/bt5/erp5_project/bt/revision?rev=20054&r1=20053&r2=20054&view=diff
==============================================================================
--- erp5/trunk/bt5/erp5_project/bt/revision (original)
+++ erp5/trunk/bt5/erp5_project/bt/revision Wed Mar 19 17:48:00 2008
@@ -1,1 +1,1 @@
-446
+447

Modified: erp5/trunk/bt5/erp5_project/bt/template_path_list
URL: http://svn.erp5.org/erp5/trunk/bt5/erp5_project/bt/template_path_list?rev=20054&r1=20053&r2=20054&view=diff
==============================================================================
--- erp5/trunk/bt5/erp5_project/bt/template_path_list (original)
+++ erp5/trunk/bt5/erp5_project/bt/template_path_list Wed Mar 19 17:48:00 2008
@@ -6,4 +6,5 @@
 portal_domains/task_module_project_domain
 portal_domains/task_report_module_domain
 portal_domains/task_report_module_person_domain
-portal_domains/task_report_module_project_domain
+portal_domains/task_report_module_project_domain
+portal_domains/validated_project_domain




More information about the Erp5-report mailing list