Commit 3fdd7a0a by Roque

erp5_project: domains for project views

parent fcb2fc42
......@@ -108,11 +108,11 @@
</item>
<item>
<key> <string>domain_generator_method_id</string> </key>
<value> <string>Base_generateClosedProjectDomain</string> </value>
<value> <string>Base_generateStateBugDomain</string> </value>
</item>
<item>
<key> <string>id</string> </key>
<value> <string>closed_project_domain</string> </value>
<value> <string>state_bug_domain</string> </value>
</item>
<item>
<key> <string>portal_type</string> </key>
......@@ -120,7 +120,7 @@
</item>
<item>
<key> <string>title</string> </key>
<value> <string>Closed Project Domain</string> </value>
<value> <string>State Bug Domain</string> </value>
</item>
</dictionary>
</pickle>
......
......@@ -108,11 +108,11 @@
</item>
<item>
<key> <string>domain_generator_method_id</string> </key>
<value> <string>Base_generateStartedProjectDomain</string> </value>
<value> <string>Base_generateStateProjectDomain</string> </value>
</item>
<item>
<key> <string>id</string> </key>
<value> <string>started_project_domain</string> </value>
<value> <string>state_project_domain</string> </value>
</item>
<item>
<key> <string>portal_type</string> </key>
......@@ -120,7 +120,7 @@
</item>
<item>
<key> <string>title</string> </key>
<value> <string>Started Project Domain</string> </value>
<value> <string>State Project Domain</string> </value>
</item>
</dictionary>
</pickle>
......
<?xml version="1.0"?>
<ZopeData>
<record id="1" aka="AAAAAAAAAAE=">
<pickle>
<global name="Base Domain" module="erp5.portal_type"/>
</pickle>
<pickle>
<dictionary>
<item>
<key> <string>_Access_contents_information_Permission</string> </key>
<value>
<tuple>
<string>Anonymous</string>
<string>Assignee</string>
<string>Assignor</string>
<string>Associate</string>
<string>Auditor</string>
<string>Authenticated</string>
<string>Author</string>
<string>Manager</string>
<string>Member</string>
<string>Owner</string>
<string>Reviewer</string>
</tuple>
</value>
</item>
<item>
<key> <string>_Add_portal_content_Permission</string> </key>
<value>
<tuple>
<string>Assignor</string>
<string>Manager</string>
</tuple>
</value>
</item>
<item>
<key> <string>_Add_portal_folders_Permission</string> </key>
<value>
<tuple>
<string>Assignor</string>
<string>Manager</string>
</tuple>
</value>
</item>
<item>
<key> <string>_Copy_or_Move_Permission</string> </key>
<value>
<tuple>
<string>Assignor</string>
<string>Manager</string>
</tuple>
</value>
</item>
<item>
<key> <string>_Delete_objects_Permission</string> </key>
<value>
<tuple>
<string>Assignor</string>
<string>Manager</string>
</tuple>
</value>
</item>
<item>
<key> <string>_Modify_portal_content_Permission</string> </key>
<value>
<tuple>
<string>Assignee</string>
<string>Assignor</string>
<string>Manager</string>
</tuple>
</value>
</item>
<item>
<key> <string>_View_Permission</string> </key>
<value>
<tuple>
<string>Anonymous</string>
<string>Assignee</string>
<string>Assignor</string>
<string>Associate</string>
<string>Auditor</string>
<string>Authenticated</string>
<string>Author</string>
<string>Manager</string>
<string>Member</string>
<string>Owner</string>
<string>Reviewer</string>
</tuple>
</value>
</item>
<item>
<key> <string>_identity_criterion</string> </key>
<value>
<dictionary/>
</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_generateStateTaskDomain</string> </value>
</item>
<item>
<key> <string>id</string> </key>
<value> <string>state_task_domain</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>State Task Domain</string> </value>
</item>
</dictionary>
</pickle>
</record>
</ZopeData>
<?xml version="1.0"?>
<ZopeData>
<record id="1" aka="AAAAAAAAAAE=">
<pickle>
<global name="Base Domain" module="erp5.portal_type"/>
</pickle>
<pickle>
<dictionary>
<item>
<key> <string>_Add_portal_content_Permission</string> </key>
<value>
<tuple>
<string>Assignor</string>
<string>Manager</string>
</tuple>
</value>
</item>
<item>
<key> <string>_Add_portal_folders_Permission</string> </key>
<value>
<tuple>
<string>Assignor</string>
<string>Manager</string>
</tuple>
</value>
</item>
<item>
<key> <string>_Copy_or_Move_Permission</string> </key>
<value>
<tuple>
<string>Assignor</string>
<string>Manager</string>
</tuple>
</value>
</item>
<item>
<key> <string>_Delete_objects_Permission</string> </key>
<value>
<tuple>
<string>Assignor</string>
<string>Manager</string>
</tuple>
</value>
</item>
<item>
<key> <string>_Modify_portal_content_Permission</string> </key>
<value>
<tuple>
<string>Assignee</string>
<string>Assignor</string>
<string>Manager</string>
<string>Owner</string>
</tuple>
</value>
</item>
<item>
<key> <string>_identity_criterion</string> </key>
<value>
<dictionary/>
</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_generateStateTaskReportDomain</string> </value>
</item>
<item>
<key> <string>id</string> </key>
<value> <string>state_task_report_domain</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>State Task Report Domain</string> </value>
</item>
</dictionary>
</pickle>
</record>
</ZopeData>
#list of new open bugs
#list of recently closed bugs
domain_list = []
started_domain = parent.generateTempDomain(id='started')
started_domain.edit(title="Open",
criterion_property_list=['simulation_state'])
started_domain.setCriterion('simulation_state', identity=['confirmed', 'ready'])
domain_list.append(started_domain)
closed_domain = parent.generateTempDomain(id='closed')
closed_domain.edit(title="Solved/Closed",
criterion_property_list=['simulation_state'])
closed_domain.setCriterion('simulation_state', identity=['delivered', 'stopped'])
domain_list.append(closed_domain)
not_started_domain = parent.generateTempDomain(id='not_started')
not_started_domain.edit(title="Not Confirmed",
criterion_property_list=['simulation_state'])
not_started_domain.setCriterion('simulation_state', identity=['draft', 'cancelled'])
domain_list.append(not_started_domain)
return domain_list
<?xml version="1.0"?>
<ZopeData>
<record id="1" aka="AAAAAAAAAAE=">
<pickle>
<global name="PythonScript" module="Products.PythonScripts.PythonScript"/>
</pickle>
<pickle>
<dictionary>
<item>
<key> <string>Script_magic</string> </key>
<value> <int>3</int> </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>_params</string> </key>
<value> <string>depth, parent, **kw</string> </value>
</item>
<item>
<key> <string>id</string> </key>
<value> <string>Base_generateStateBugDomain</string> </value>
</item>
</dictionary>
</pickle>
</record>
</ZopeData>
domain_list = []
started_domain = parent.generateTempDomain(id='started')
started_domain.edit(title="Confirmed",
criterion_property_list=['simulation_state'])
started_domain.setCriterion('simulation_state', identity='confirmed')
domain_list.append(started_domain)
not_started_domain = parent.generateTempDomain(id='not_started')
not_started_domain.edit(title="Not Confirmed",
criterion_property_list=['simulation_state'])
not_started_domain.setCriterion('simulation_state', identity=['planned', 'ordered', 'draft', 'cancelled'])
domain_list.append(not_started_domain)
return domain_list
<?xml version="1.0"?>
<ZopeData>
<record id="1" aka="AAAAAAAAAAE=">
<pickle>
<global name="PythonScript" module="Products.PythonScripts.PythonScript"/>
</pickle>
<pickle>
<dictionary>
<item>
<key> <string>Script_magic</string> </key>
<value> <int>3</int> </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>_params</string> </key>
<value> <string>depth, parent, **kw</string> </value>
</item>
<item>
<key> <string>id</string> </key>
<value> <string>Base_generateStateTaskDomain</string> </value>
</item>
</dictionary>
</pickle>
</record>
</ZopeData>
domain_list = []
started_domain = parent.generateTempDomain(id='started')
started_domain.edit(title="Confirmed",
criterion_property_list=['simulation_state'])
started_domain.setCriterion('simulation_state', identity='confirmed')
domain_list.append(started_domain)
not_started_domain = parent.generateTempDomain(id='not_started')
not_started_domain.edit(title="Not Confirmed",
criterion_property_list=['simulation_state'])
not_started_domain.setCriterion('simulation_state', identity=['delivered', 'stopped', 'draft'])
domain_list.append(not_started_domain)
return domain_list
<?xml version="1.0"?>
<ZopeData>
<record id="1" aka="AAAAAAAAAAE=">
<pickle>
<global name="PythonScript" module="Products.PythonScripts.PythonScript"/>
</pickle>
<pickle>
<dictionary>
<item>
<key> <string>Script_magic</string> </key>
<value> <int>3</int> </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>_params</string> </key>
<value> <string>depth, parent, **kw</string> </value>
</item>
<item>
<key> <string>id</string> </key>
<value> <string>Base_generateStateTaskReportDomain</string> </value>
</item>
</dictionary>
</pickle>
</record>
</ZopeData>
......@@ -141,7 +141,7 @@
<list>
<tuple>
<string>state_project_domain</string>
<string>Project State</string>
<string>Project Status</string>
</tuple>
</list>
</value>
......
......@@ -10,14 +10,16 @@
<key> <string>delegated_list</string> </key>
<value>
<list>
<string>title</string>
<string>columns</string>
<string>sort_columns</string>
<string>sort</string>
<string>default_params</string>
<string>domain_root_list</string>
<string>domain_tree</string>
<string>list_method</string>
<string>selection_name</string>
<string>portal_types</string>
<string>default_params</string>
<string>selection_name</string>
<string>sort</string>
<string>sort_columns</string>
<string>title</string>
</list>
</value>
</item>
......@@ -180,6 +182,21 @@
</value>
</item>
<item>
<key> <string>domain_root_list</string> </key>
<value>
<list>
<tuple>
<string>state_bug_domain</string>
<string>Bug Status</string>
</tuple>
</list>
</value>
</item>
<item>
<key> <string>domain_tree</string> </key>
<value> <int>1</int> </value>
</item>
<item>
<key> <string>field_id</string> </key>
<value> <string>my_view_mode_listbox</string> </value>
</item>
......@@ -246,10 +263,7 @@
</record>
<record id="2" aka="AAAAAAAAAAI=">
<pickle>
<tuple>
<global name="Method" module="Products.Formulator.MethodField"/>
<tuple/>
</tuple>
<global name="Method" module="Products.Formulator.MethodField"/>
</pickle>
<pickle>
<dictionary>
......
......@@ -10,7 +10,6 @@
<key> <string>delegated_list</string> </key>
<value>
<list>
<string>all_columns</string>
<string>columns</string>
<string>editable_columns</string>
<string>list_method</string>
......@@ -18,6 +17,7 @@
<string>report_root_list</string>
<string>report_tree</string>
<string>selection_name</string>
<string>sort</string>
<string>sort_columns</string>
<string>stat_method</string>
<string>title</string>
......@@ -86,12 +86,6 @@
<value> <int>1</int> </value>
</item>
<item>
<key> <string>all_columns</string> </key>
<value>
<list/>
</value>
</item>
<item>
<key> <string>all_editable_columns</string> </key>
<value>
<list>
......@@ -229,9 +223,25 @@
<value> <int>0</int> </value>
</item>
<item>
<key> <string>sort</string> </key>
<value>
<list>
<tuple>
<string>id</string>
<string>id</string>
</tuple>
</list>
</value>
</item>
<item>
<key> <string>sort_columns</string> </key>
<value>
<list/>
<list>
<tuple>
<string>title</string>
<string>title</string>
</tuple>
</list>
</value>
</item>
<item>
......
......@@ -197,6 +197,10 @@
<string>ledger</string>
<string>Ledger</string>
</tuple>
<tuple>
<string>state_task_domain</string>
<string>Task Status</string>
</tuple>
</list>
</value>
</item>
......
......@@ -208,6 +208,10 @@
<string>ledger</string>
<string>Ledger</string>
</tuple>
<tuple>
<string>state_task_report_domain</string>
<string>Task Report Status</string>
</tuple>
</list>
</value>
</item>
......
......@@ -2,14 +2,16 @@ portal_deliveries/task_invoice_builder
portal_deliveries/task_invoice_builder/**
portal_deliveries/task_report_builder
portal_deliveries/task_report_builder/**
portal_domains/closed_project_domain
portal_domains/project_person_domain
portal_domains/project_person_task_report_domain
portal_domains/project_project_domain
portal_domains/project_project_task_report_domain
portal_domains/project_projectline_domain
portal_domains/project_report_monthly_domain
portal_domains/started_project_domain
portal_domains/state_bug_domain
portal_domains/state_project_domain
portal_domains/state_task_domain
portal_domains/state_task_report_domain
portal_domains/task_module_domain
portal_domains/task_module_person_domain
portal_domains/task_module_project_domain
......
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 sign in to comment