Commit d3346ba0 authored by Romain Courteaud's avatar Romain Courteaud

Add preferred_group_person_list_domain, in order to display the list of...

Add preferred_group_person_list_domain, in order to display the list of persons associated to the user preferred group.

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@21020 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 2ea4fe91
<?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>_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_generatePreferredSectionPersonListDomain</string> </value>
</item>
<item>
<key> <string>id</string> </key>
<value> <string>preferred_group_person_list_domain</string> </value>
</item>
<item>
<key> <string>last_id</string> </key>
<value> <string>1</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>Preferred Group\'s Persons Domain</string> </value>
</item>
<item>
<key> <string>uid</string> </key>
<value>
<none/>
</value>
</item>
</dictionary>
</pickle>
</record>
</ZopeData>
<?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
if depth == 0:\n
preferred_group = context.portal_preferences.getPreferredSectionCategory()\n
if preferred_group:\n
\n
person_sql_list = context.portal_catalog(\n
portal_type=\'Person\', group_relative_url=preferred_group)\n
\n
for person in person_sql_list:\n
person = person.getObject()\n
domain = parent.generateTempDomain(id=\'sub%s\' % person.getId())\n
domain.edit(title = person.getTitle(),\n
membership_criterion_base_category = (\'source\', ), \n
membership_criterion_category = (\'source/%s\' % person.getRelativeUrl(),),\n
domain_generator_method_id = script.id,\n
uid = person.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>_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>preferred_group</string>
<string>person_sql_list</string>
<string>_getiter_</string>
<string>person</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_generatePreferredSectionPersonListDomain</string> </value>
</item>
<item>
<key> <string>warnings</string> </key>
<value>
<tuple/>
</value>
</item>
</dictionary>
</pickle>
</record>
</ZopeData>
...@@ -90,7 +90,7 @@ ...@@ -90,7 +90,7 @@
<value> <int>0</int> </value> <value> <int>0</int> </value>
</item> </item>
<item> <item>
<key> <string>all_columns</string> </key> <key> <string>all_columns</string> </key>
<value> <value>
<list> <list>
<tuple> <tuple>
...@@ -147,7 +147,7 @@ ...@@ -147,7 +147,7 @@
</value> </value>
</item> </item>
<item> <item>
<key> <string>columns</string> </key> <key> <string>columns</string> </key>
<value> <value>
<list> <list>
<tuple> <tuple>
...@@ -194,7 +194,7 @@ ...@@ -194,7 +194,7 @@
</value> </value>
</item> </item>
<item> <item>
<key> <string>domain_root_list</string> </key> <key> <string>domain_root_list</string> </key>
<value> <value>
<list> <list>
<tuple> <tuple>
...@@ -205,15 +205,19 @@ ...@@ -205,15 +205,19 @@
<string>validated_project_domain</string> <string>validated_project_domain</string>
<string>Open Project</string> <string>Open Project</string>
</tuple> </tuple>
<tuple>
<string>preferred_group_person_list_domain</string>
<string>Persons</string>
</tuple>
</list> </list>
</value> </value>
</item> </item>
<item> <item>
<key> <string>domain_tree</string> </key> <key> <string>domain_tree</string> </key>
<value> <int>1</int> </value> <value> <int>1</int> </value>
</item> </item>
<item> <item>
<key> <string>editable_columns</string> </key> <key> <string>editable_columns</string> </key>
<value> <value>
<list> <list>
<tuple> <tuple>
...@@ -236,7 +240,7 @@ ...@@ -236,7 +240,7 @@
<value> <string>Base_viewFieldLibrary</string> </value> <value> <string>Base_viewFieldLibrary</string> </value>
</item> </item>
<item> <item>
<key> <string>portal_types</string> </key> <key> <string>portal_types</string> </key>
<value> <value>
<list> <list>
<tuple> <tuple>
...@@ -247,22 +251,26 @@ ...@@ -247,22 +251,26 @@
</value> </value>
</item> </item>
<item> <item>
<key> <string>report_root_list</string> </key> <key> <string>report_root_list</string> </key>
<value> <value>
<list> <list>
<tuple> <tuple>
<string>region</string> <string>region</string>
<string>Region</string> <string>Region</string>
</tuple> </tuple>
<tuple>
<string>preferred_group_person_list_domain</string>
<string>Persons</string>
</tuple>
</list> </list>
</value> </value>
</item> </item>
<item> <item>
<key> <string>report_tree</string> </key> <key> <string>report_tree</string> </key>
<value> <int>1</int> </value> <value> <int>1</int> </value>
</item> </item>
<item> <item>
<key> <string>search_columns</string> </key> <key> <string>search_columns</string> </key>
<value> <value>
<list> <list>
<tuple> <tuple>
...@@ -301,11 +309,11 @@ ...@@ -301,11 +309,11 @@
</value> </value>
</item> </item>
<item> <item>
<key> <string>selection_name</string> </key> <key> <string>selection_name</string> </key>
<value> <string>task_module_selection</string> </value> <value> <string>task_module_selection</string> </value>
</item> </item>
<item> <item>
<key> <string>sort</string> </key> <key> <string>sort</string> </key>
<value> <value>
<list> <list>
<tuple> <tuple>
...@@ -320,7 +328,7 @@ ...@@ -320,7 +328,7 @@
<value> <string>Click to edit the target</string> </value> <value> <string>Click to edit the target</string> </value>
</item> </item>
<item> <item>
<key> <string>title</string> </key> <key> <string>title</string> </key>
<value> <string>Tasks</string> </value> <value> <string>Tasks</string> </value>
</item> </item>
</dictionary> </dictionary>
......
...@@ -90,7 +90,7 @@ ...@@ -90,7 +90,7 @@
<value> <int>0</int> </value> <value> <int>0</int> </value>
</item> </item>
<item> <item>
<key> <string>all_columns</string> </key> <key> <string>all_columns</string> </key>
<value> <value>
<list> <list>
<tuple> <tuple>
...@@ -143,7 +143,7 @@ ...@@ -143,7 +143,7 @@
</value> </value>
</item> </item>
<item> <item>
<key> <string>columns</string> </key> <key> <string>columns</string> </key>
<value> <value>
<list> <list>
<tuple> <tuple>
...@@ -190,7 +190,7 @@ ...@@ -190,7 +190,7 @@
</value> </value>
</item> </item>
<item> <item>
<key> <string>domain_root_list</string> </key> <key> <string>domain_root_list</string> </key>
<value> <value>
<list> <list>
<tuple> <tuple>
...@@ -201,15 +201,19 @@ ...@@ -201,15 +201,19 @@
<string>validated_project_domain</string> <string>validated_project_domain</string>
<string>Open Project</string> <string>Open Project</string>
</tuple> </tuple>
<tuple>
<string>preferred_group_person_list_domain</string>
<string>Persons</string>
</tuple>
</list> </list>
</value> </value>
</item> </item>
<item> <item>
<key> <string>domain_tree</string> </key> <key> <string>domain_tree</string> </key>
<value> <int>1</int> </value> <value> <int>1</int> </value>
</item> </item>
<item> <item>
<key> <string>editable_columns</string> </key> <key> <string>editable_columns</string> </key>
<value> <value>
<list> <list>
<tuple> <tuple>
...@@ -232,7 +236,7 @@ ...@@ -232,7 +236,7 @@
<value> <string>Base_viewFieldLibrary</string> </value> <value> <string>Base_viewFieldLibrary</string> </value>
</item> </item>
<item> <item>
<key> <string>portal_types</string> </key> <key> <string>portal_types</string> </key>
<value> <value>
<list> <list>
<tuple> <tuple>
...@@ -243,22 +247,26 @@ ...@@ -243,22 +247,26 @@
</value> </value>
</item> </item>
<item> <item>
<key> <string>report_root_list</string> </key> <key> <string>report_root_list</string> </key>
<value> <value>
<list> <list>
<tuple> <tuple>
<string>region</string> <string>region</string>
<string>region</string> <string>region</string>
</tuple> </tuple>
<tuple>
<string>preferred_group_person_list_domain</string>
<string>Persons</string>
</tuple>
</list> </list>
</value> </value>
</item> </item>
<item> <item>
<key> <string>report_tree</string> </key> <key> <string>report_tree</string> </key>
<value> <int>1</int> </value> <value> <int>1</int> </value>
</item> </item>
<item> <item>
<key> <string>search_columns</string> </key> <key> <string>search_columns</string> </key>
<value> <value>
<list> <list>
<tuple> <tuple>
...@@ -297,11 +305,11 @@ ...@@ -297,11 +305,11 @@
</value> </value>
</item> </item>
<item> <item>
<key> <string>selection_name</string> </key> <key> <string>selection_name</string> </key>
<value> <string>task_report_module_selection</string> </value> <value> <string>task_report_module_selection</string> </value>
</item> </item>
<item> <item>
<key> <string>sort</string> </key> <key> <string>sort</string> </key>
<value> <value>
<list> <list>
<tuple> <tuple>
...@@ -316,7 +324,7 @@ ...@@ -316,7 +324,7 @@
<value> <string>Click to edit the target</string> </value> <value> <string>Click to edit the target</string> </value>
</item> </item>
<item> <item>
<key> <string>title</string> </key> <key> <string>title</string> </key>
<value> <string>Task Reports</string> </value> <value> <string>Task Reports</string> </value>
</item> </item>
</dictionary> </dictionary>
......
483 486
\ No newline at end of file \ No newline at end of file
portal_deliveries/task_invoice_builder portal_deliveries/task_invoice_builder
portal_deliveries/task_report_builder portal_deliveries/task_report_builder
portal_domains/preferred_group_person_list_domain
portal_domains/project_person_domain portal_domains/project_person_domain
portal_domains/project_person_task_report_domain portal_domains/project_person_task_report_domain
portal_domains/project_project_domain portal_domains/project_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 to comment