Commit 6a3a7cf9 authored by Romain Courteaud's avatar Romain Courteaud

[erp5_project] Drop preferred_group_person_list_domain

Domains are not meant to display too many documents at the same level.
parent f7c86a4a
<?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>_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>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>
</dictionary>
</pickle>
</record>
</ZopeData>
request = context.REQUEST
domain_list = []
if depth == 0:
preferred_group = context.portal_preferences.getPreferredSectionCategory()
if preferred_group:
person_sql_list = context.portal_catalog(
portal_type='Person', group_relative_url=preferred_group)
for person in person_sql_list:
person = person.getObject()
domain = parent.generateTempDomain(id='sub%s' % person.getId())
domain.edit(title = person.getTitle(),
membership_criterion_base_category = ('source', ),
membership_criterion_category = ('source/%s' % person.getRelativeUrl(),),
domain_generator_method_id = script.id,
uid = person.getUid())
domain_list.append(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_generatePreferredSectionPersonListDomain</string> </value>
</item>
</dictionary>
</pickle>
</record>
</ZopeData>
......@@ -197,10 +197,6 @@
<string>ledger</string>
<string>Ledger</string>
</tuple>
<tuple>
<string>preferred_group_person_list_domain</string>
<string>Persons</string>
</tuple>
</list>
</value>
</item>
......
......@@ -208,10 +208,6 @@
<string>ledger</string>
<string>Ledger</string>
</tuple>
<tuple>
<string>preferred_group_person_list_domain</string>
<string>Persons</string>
</tuple>
</list>
</value>
</item>
......@@ -265,10 +261,6 @@
<string>ledger</string>
<string>Ledger</string>
</tuple>
<tuple>
<string>preferred_group_person_list_domain</string>
<string>Persons</string>
</tuple>
</list>
</value>
</item>
......
......@@ -2,7 +2,6 @@ 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_task_report_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