diff --git a/bt5/erp5_web_ung_theme/PathTemplateItem/portal_domains/ung_domain.xml b/bt5/erp5_web_ung_theme/PathTemplateItem/portal_domains/ung_domain.xml index 71bce69d98c948faa2949ac7f584ce255b876a13..1bae5258fbdcce50a3d1f9f28c35b4cfda9af958 100644 --- a/bt5/erp5_web_ung_theme/PathTemplateItem/portal_domains/ung_domain.xml +++ b/bt5/erp5_web_ung_theme/PathTemplateItem/portal_domains/ung_domain.xml @@ -52,7 +52,7 @@ </item> <item> <key> <string>last_id</string> </key> - <value> <string>13</string> </value> + <value> <string>28</string> </value> </item> <item> <key> <string>portal_type</string> </key> diff --git a/bt5/erp5_web_ung_theme/PathTemplateItem/portal_domains/ung_domain/all_documents.xml b/bt5/erp5_web_ung_theme/PathTemplateItem/portal_domains/ung_domain/all_documents.xml new file mode 100644 index 0000000000000000000000000000000000000000..58c5eb52cd209bfbb9c4ab4c78ec9123ef1fcbd4 --- /dev/null +++ b/bt5/erp5_web_ung_theme/PathTemplateItem/portal_domains/ung_domain/all_documents.xml @@ -0,0 +1,121 @@ +<?xml version="1.0"?> +<ZopeData> + <record id="1" aka="AAAAAAAAAAE="> + <pickle> + <global name="Domain" module="erp5.portal_type"/> + </pickle> + <pickle> + <dictionary> + <item> + <key> <string>_count</string> </key> + <value> + <persistent> <string encoding="base64">AAAAAAAAAAI=</string> </persistent> + </value> + </item> + <item> + <key> <string>_identity_criterion</string> </key> + <value> + <dictionary> + <item> + <key> <string>portal_type</string> </key> + <value> + <list> + <string>Web Page</string> + <string>Web Table</string> + <string>Web Illustration</string> + </list> + </value> + </item> + </dictionary> + </value> + </item> + <item> + <key> <string>_mt_index</string> </key> + <value> + <persistent> <string encoding="base64">AAAAAAAAAAM=</string> </persistent> + </value> + </item> + <item> + <key> <string>_range_criterion</string> </key> + <value> + <dictionary/> + </value> + </item> + <item> + <key> <string>_tree</string> </key> + <value> + <persistent> <string encoding="base64">AAAAAAAAAAQ=</string> </persistent> + </value> + </item> + <item> + <key> <string>criterion_property</string> </key> + <value> + <tuple> + <string>portal_type</string> + </tuple> + </value> + </item> + <item> + <key> <string>id</string> </key> + <value> <string>all_documents</string> </value> + </item> + <item> + <key> <string>int_index</string> </key> + <value> <int>1</int> </value> + </item> + <item> + <key> <string>last_id</string> </key> + <value> <string>3</string> </value> + </item> + <item> + <key> <string>membership_criterion_category</string> </key> + <value> + <tuple/> + </value> + </item> + <item> + <key> <string>portal_type</string> </key> + <value> <string>Domain</string> </value> + </item> + <item> + <key> <string>string_index</string> </key> + <value> + <none/> + </value> + </item> + <item> + <key> <string>test_method_id</string> </key> + <value> + <tuple/> + </value> + </item> + <item> + <key> <string>title</string> </key> + <value> <string>All Documents</string> </value> + </item> + </dictionary> + </pickle> + </record> + <record id="2" aka="AAAAAAAAAAI="> + <pickle> + <global name="Length" module="BTrees.Length"/> + </pickle> + <pickle> <int>0</int> </pickle> + </record> + <record id="3" aka="AAAAAAAAAAM="> + <pickle> + <global name="OOBTree" module="BTrees.OOBTree"/> + </pickle> + <pickle> + <none/> + </pickle> + </record> + <record id="4" aka="AAAAAAAAAAQ="> + <pickle> + <global name="OOBTree" module="BTrees.OOBTree"/> + </pickle> + <pickle> + <none/> + </pickle> + </record> +</ZopeData> diff --git a/bt5/erp5_web_ung_theme/PathTemplateItem/portal_domains/ung_domain/all_documents/web_illustration_domain.xml b/bt5/erp5_web_ung_theme/PathTemplateItem/portal_domains/ung_domain/all_documents/web_illustration_domain.xml new file mode 100644 index 0000000000000000000000000000000000000000..2af6f52c01e932376c7574e5364e8364af13a121 --- /dev/null +++ b/bt5/erp5_web_ung_theme/PathTemplateItem/portal_domains/ung_domain/all_documents/web_illustration_domain.xml @@ -0,0 +1,77 @@ +<?xml version="1.0"?> +<ZopeData> + <record id="1" aka="AAAAAAAAAAE="> + <pickle> + <global name="Domain" module="erp5.portal_type"/> + </pickle> + <pickle> + <dictionary> + <item> + <key> <string>_identity_criterion</string> </key> + <value> + <dictionary> + <item> + <key> <string>portal_type</string> </key> + <value> + <list> + <string>Web Illustration</string> + </list> + </value> + </item> + </dictionary> + </value> + </item> + <item> + <key> <string>_range_criterion</string> </key> + <value> + <dictionary/> + </value> + </item> + <item> + <key> <string>criterion_property</string> </key> + <value> + <tuple> + <string>portal_type</string> + </tuple> + </value> + </item> + <item> + <key> <string>id</string> </key> + <value> <string>web_illustration_domain</string> </value> + </item> + <item> + <key> <string>int_index</string> </key> + <value> + <none/> + </value> + </item> + <item> + <key> <string>membership_criterion_category</string> </key> + <value> + <tuple/> + </value> + </item> + <item> + <key> <string>portal_type</string> </key> + <value> <string>Domain</string> </value> + </item> + <item> + <key> <string>string_index</string> </key> + <value> + <none/> + </value> + </item> + <item> + <key> <string>test_method_id</string> </key> + <value> + <tuple/> + </value> + </item> + <item> + <key> <string>title</string> </key> + <value> <string>Web Illustration</string> </value> + </item> + </dictionary> + </pickle> + </record> +</ZopeData> diff --git a/bt5/erp5_web_ung_theme/PathTemplateItem/portal_domains/ung_domain/all_documents/web_page_subdomain.xml b/bt5/erp5_web_ung_theme/PathTemplateItem/portal_domains/ung_domain/all_documents/web_page_subdomain.xml new file mode 100644 index 0000000000000000000000000000000000000000..0b336fc8cd2923dc7b937d1fead32cf7613bcf6c --- /dev/null +++ b/bt5/erp5_web_ung_theme/PathTemplateItem/portal_domains/ung_domain/all_documents/web_page_subdomain.xml @@ -0,0 +1,77 @@ +<?xml version="1.0"?> +<ZopeData> + <record id="1" aka="AAAAAAAAAAE="> + <pickle> + <global name="Domain" module="erp5.portal_type"/> + </pickle> + <pickle> + <dictionary> + <item> + <key> <string>_identity_criterion</string> </key> + <value> + <dictionary> + <item> + <key> <string>portal_type</string> </key> + <value> + <list> + <string>Web Page</string> + </list> + </value> + </item> + </dictionary> + </value> + </item> + <item> + <key> <string>_range_criterion</string> </key> + <value> + <dictionary/> + </value> + </item> + <item> + <key> <string>criterion_property</string> </key> + <value> + <tuple> + <string>portal_type</string> + </tuple> + </value> + </item> + <item> + <key> <string>id</string> </key> + <value> <string>web_page_subdomain</string> </value> + </item> + <item> + <key> <string>int_index</string> </key> + <value> + <none/> + </value> + </item> + <item> + <key> <string>membership_criterion_category</string> </key> + <value> + <tuple/> + </value> + </item> + <item> + <key> <string>portal_type</string> </key> + <value> <string>Domain</string> </value> + </item> + <item> + <key> <string>string_index</string> </key> + <value> + <none/> + </value> + </item> + <item> + <key> <string>test_method_id</string> </key> + <value> + <tuple/> + </value> + </item> + <item> + <key> <string>title</string> </key> + <value> <string>Web Page</string> </value> + </item> + </dictionary> + </pickle> + </record> +</ZopeData> diff --git a/bt5/erp5_web_ung_theme/PathTemplateItem/portal_domains/ung_domain/all_documents/web_table_subdomain.xml b/bt5/erp5_web_ung_theme/PathTemplateItem/portal_domains/ung_domain/all_documents/web_table_subdomain.xml new file mode 100644 index 0000000000000000000000000000000000000000..75bb9d4e6c00acd416763623d6479ae0a809b3f5 --- /dev/null +++ b/bt5/erp5_web_ung_theme/PathTemplateItem/portal_domains/ung_domain/all_documents/web_table_subdomain.xml @@ -0,0 +1,77 @@ +<?xml version="1.0"?> +<ZopeData> + <record id="1" aka="AAAAAAAAAAE="> + <pickle> + <global name="Domain" module="erp5.portal_type"/> + </pickle> + <pickle> + <dictionary> + <item> + <key> <string>_identity_criterion</string> </key> + <value> + <dictionary> + <item> + <key> <string>portal_type</string> </key> + <value> + <list> + <string>Web Table</string> + </list> + </value> + </item> + </dictionary> + </value> + </item> + <item> + <key> <string>_range_criterion</string> </key> + <value> + <dictionary/> + </value> + </item> + <item> + <key> <string>criterion_property</string> </key> + <value> + <tuple> + <string>portal_type</string> + </tuple> + </value> + </item> + <item> + <key> <string>id</string> </key> + <value> <string>web_table_subdomain</string> </value> + </item> + <item> + <key> <string>int_index</string> </key> + <value> + <none/> + </value> + </item> + <item> + <key> <string>membership_criterion_category</string> </key> + <value> + <tuple/> + </value> + </item> + <item> + <key> <string>portal_type</string> </key> + <value> <string>Domain</string> </value> + </item> + <item> + <key> <string>string_index</string> </key> + <value> + <none/> + </value> + </item> + <item> + <key> <string>test_method_id</string> </key> + <value> + <tuple/> + </value> + </item> + <item> + <key> <string>title</string> </key> + <value> <string>Web Table</string> </value> + </item> + </dictionary> + </pickle> + </record> +</ZopeData> diff --git a/bt5/erp5_web_ung_theme/PathTemplateItem/portal_domains/ung_domain/hidden.xml b/bt5/erp5_web_ung_theme/PathTemplateItem/portal_domains/ung_domain/hidden.xml new file mode 100644 index 0000000000000000000000000000000000000000..a90bfce59e485c45d948a6a6429744ea98a1f928 --- /dev/null +++ b/bt5/erp5_web_ung_theme/PathTemplateItem/portal_domains/ung_domain/hidden.xml @@ -0,0 +1,77 @@ +<?xml version="1.0"?> +<ZopeData> + <record id="1" aka="AAAAAAAAAAE="> + <pickle> + <global name="Domain" module="erp5.portal_type"/> + </pickle> + <pickle> + <dictionary> + <item> + <key> <string>_identity_criterion</string> </key> + <value> + <dictionary> + <item> + <key> <string>validation_state</string> </key> + <value> + <list> + <string>hidden</string> + </list> + </value> + </item> + </dictionary> + </value> + </item> + <item> + <key> <string>_range_criterion</string> </key> + <value> + <dictionary/> + </value> + </item> + <item> + <key> <string>criterion_property</string> </key> + <value> + <tuple> + <string>validation_state</string> + </tuple> + </value> + </item> + <item> + <key> <string>id</string> </key> + <value> <string>hidden</string> </value> + </item> + <item> + <key> <string>int_index</string> </key> + <value> + <none/> + </value> + </item> + <item> + <key> <string>membership_criterion_category</string> </key> + <value> + <tuple/> + </value> + </item> + <item> + <key> <string>portal_type</string> </key> + <value> <string>Domain</string> </value> + </item> + <item> + <key> <string>string_index</string> </key> + <value> + <none/> + </value> + </item> + <item> + <key> <string>test_method_id</string> </key> + <value> + <tuple/> + </value> + </item> + <item> + <key> <string>title</string> </key> + <value> <string>Hidden</string> </value> + </item> + </dictionary> + </pickle> + </record> +</ZopeData> diff --git a/bt5/erp5_web_ung_theme/PathTemplateItem/portal_domains/ung_domain/owner.xml b/bt5/erp5_web_ung_theme/PathTemplateItem/portal_domains/ung_domain/owner.xml new file mode 100644 index 0000000000000000000000000000000000000000..e0c048b43a31782f5975a927207d6a7f4bc1253f --- /dev/null +++ b/bt5/erp5_web_ung_theme/PathTemplateItem/portal_domains/ung_domain/owner.xml @@ -0,0 +1,62 @@ +<?xml version="1.0"?> +<ZopeData> + <record id="1" aka="AAAAAAAAAAE="> + <pickle> + <global name="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>id</string> </key> + <value> <string>owner</string> </value> + </item> + <item> + <key> <string>int_index</string> </key> + <value> <int>3</int> </value> + </item> + <item> + <key> <string>membership_criterion_category</string> </key> + <value> + <tuple/> + </value> + </item> + <item> + <key> <string>portal_type</string> </key> + <value> <string>Domain</string> </value> + </item> + <item> + <key> <string>string_index</string> </key> + <value> + <none/> + </value> + </item> + <item> + <key> <string>test_method_id</string> </key> + <value> + <tuple/> + </value> + </item> + <item> + <key> <string>test_tales_expression</string> </key> + <value> <string>python: True</string> </value> + </item> + <item> + <key> <string>title</string> </key> + <value> <string>Owner</string> </value> + </item> + </dictionary> + </pickle> + </record> +</ZopeData> diff --git a/bt5/erp5_web_ung_theme/PathTemplateItem/portal_domains/ung_domain/recent.xml b/bt5/erp5_web_ung_theme/PathTemplateItem/portal_domains/ung_domain/recent.xml new file mode 100644 index 0000000000000000000000000000000000000000..95746b0f93df2fab15bf369fc541be5215effa02 --- /dev/null +++ b/bt5/erp5_web_ung_theme/PathTemplateItem/portal_domains/ung_domain/recent.xml @@ -0,0 +1,58 @@ +<?xml version="1.0"?> +<ZopeData> + <record id="1" aka="AAAAAAAAAAE="> + <pickle> + <global name="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>id</string> </key> + <value> <string>recent</string> </value> + </item> + <item> + <key> <string>int_index</string> </key> + <value> <int>2</int> </value> + </item> + <item> + <key> <string>membership_criterion_category</string> </key> + <value> + <tuple/> + </value> + </item> + <item> + <key> <string>portal_type</string> </key> + <value> <string>Domain</string> </value> + </item> + <item> + <key> <string>string_index</string> </key> + <value> + <none/> + </value> + </item> + <item> + <key> <string>test_method_id</string> </key> + <value> + <tuple/> + </value> + </item> + <item> + <key> <string>title</string> </key> + <value> <string>Recent</string> </value> + </item> + </dictionary> + </pickle> + </record> +</ZopeData> diff --git a/bt5/erp5_web_ung_theme/PathTemplateItem/portal_domains/ung_domain/shared.xml b/bt5/erp5_web_ung_theme/PathTemplateItem/portal_domains/ung_domain/shared.xml new file mode 100644 index 0000000000000000000000000000000000000000..83fc15a9cd007510af2692c0c580031c47db7424 --- /dev/null +++ b/bt5/erp5_web_ung_theme/PathTemplateItem/portal_domains/ung_domain/shared.xml @@ -0,0 +1,77 @@ +<?xml version="1.0"?> +<ZopeData> + <record id="1" aka="AAAAAAAAAAE="> + <pickle> + <global name="Domain" module="erp5.portal_type"/> + </pickle> + <pickle> + <dictionary> + <item> + <key> <string>_identity_criterion</string> </key> + <value> + <dictionary> + <item> + <key> <string>validation_state</string> </key> + <value> + <list> + <string>shared</string> + </list> + </value> + </item> + </dictionary> + </value> + </item> + <item> + <key> <string>_range_criterion</string> </key> + <value> + <dictionary/> + </value> + </item> + <item> + <key> <string>criterion_property</string> </key> + <value> + <tuple> + <string>validation_state</string> + </tuple> + </value> + </item> + <item> + <key> <string>id</string> </key> + <value> <string>shared</string> </value> + </item> + <item> + <key> <string>int_index</string> </key> + <value> + <none/> + </value> + </item> + <item> + <key> <string>membership_criterion_category</string> </key> + <value> + <tuple/> + </value> + </item> + <item> + <key> <string>portal_type</string> </key> + <value> <string>Domain</string> </value> + </item> + <item> + <key> <string>string_index</string> </key> + <value> + <none/> + </value> + </item> + <item> + <key> <string>test_method_id</string> </key> + <value> + <tuple/> + </value> + </item> + <item> + <key> <string>title</string> </key> + <value> <string>Shared by me</string> </value> + </item> + </dictionary> + </pickle> + </record> +</ZopeData> diff --git a/bt5/erp5_web_ung_theme/PathTemplateItem/portal_domains/ung_domain/starred.xml b/bt5/erp5_web_ung_theme/PathTemplateItem/portal_domains/ung_domain/starred.xml new file mode 100644 index 0000000000000000000000000000000000000000..08d177cc7fe26f356e48071e92d3ebf2a73fb3ea --- /dev/null +++ b/bt5/erp5_web_ung_theme/PathTemplateItem/portal_domains/ung_domain/starred.xml @@ -0,0 +1,167 @@ +<?xml version="1.0"?> +<ZopeData> + <record id="1" aka="AAAAAAAAAAE="> + <pickle> + <global name="Domain Generator" module="erp5.portal_type"/> + </pickle> + <pickle> + <dictionary> + <item> + <key> <string>_local_properties</string> </key> + <value> + <tuple> + <dictionary> + <item> + <key> <string>id</string> </key> + <value> <string>int_index</string> </value> + </item> + <item> + <key> <string>type</string> </key> + <value> <string>string</string> </value> + </item> + </dictionary> + <dictionary> + <item> + <key> <string>id</string> </key> + <value> <string>criterion_property_list</string> </value> + </item> + <item> + <key> <string>type</string> </key> + <value> <string>lines</string> </value> + </item> + </dictionary> + <dictionary> + <item> + <key> <string>id</string> </key> + <value> <string>multimembership_criterion_base_category_list</string> </value> + </item> + <item> + <key> <string>type</string> </key> + <value> <string>lines</string> </value> + </item> + </dictionary> + <dictionary> + <item> + <key> <string>id</string> </key> + <value> <string>string_index</string> </value> + </item> + <item> + <key> <string>type</string> </key> + <value> <string>string</string> </value> + </item> + </dictionary> + <dictionary> + <item> + <key> <string>id</string> </key> + <value> <string>test_method_id</string> </value> + </item> + <item> + <key> <string>type</string> </key> + <value> <string>string</string> </value> + </item> + </dictionary> + <dictionary> + <item> + <key> <string>id</string> </key> + <value> <string>test_tales_expression</string> </value> + </item> + <item> + <key> <string>type</string> </key> + <value> <string>string</string> </value> + </item> + </dictionary> + <dictionary> + <item> + <key> <string>id</string> </key> + <value> <string>membership_criterion_base_category_list</string> </value> + </item> + <item> + <key> <string>type</string> </key> + <value> <string>lines</string> </value> + </item> + </dictionary> + <dictionary> + <item> + <key> <string>id</string> </key> + <value> <string>membership_criterion_category_list</string> </value> + </item> + <item> + <key> <string>type</string> </key> + <value> <string>lines</string> </value> + </item> + </dictionary> + <dictionary> + <item> + <key> <string>id</string> </key> + <value> <string>membership_criterion_document_list</string> </value> + </item> + <item> + <key> <string>type</string> </key> + <value> <string>lines</string> </value> + </item> + </dictionary> + </tuple> + </value> + </item> + <item> + <key> <string>criterion_property_list</string> </key> + <value> + <tuple/> + </value> + </item> + <item> + <key> <string>id</string> </key> + <value> <string>starred</string> </value> + </item> + <item> + <key> <string>int_index</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>membership_criterion_base_category_list</string> </key> + <value> + <tuple/> + </value> + </item> + <item> + <key> <string>membership_criterion_category_list</string> </key> + <value> + <tuple/> + </value> + </item> + <item> + <key> <string>membership_criterion_document_list</string> </key> + <value> + <tuple/> + </value> + </item> + <item> + <key> <string>multimembership_criterion_base_category_list</string> </key> + <value> + <tuple/> + </value> + </item> + <item> + <key> <string>portal_type</string> </key> + <value> <string>Domain Generator</string> </value> + </item> + <item> + <key> <string>string_index</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>test_method_id</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>test_tales_expression</string> </key> + <value> <string>python: True</string> </value> + </item> + <item> + <key> <string>title</string> </key> + <value> <string>Starred</string> </value> + </item> + </dictionary> + </pickle> + </record> +</ZopeData> diff --git a/bt5/erp5_web_ung_theme/PathTemplateItem/portal_domains/ung_domain/trash.xml b/bt5/erp5_web_ung_theme/PathTemplateItem/portal_domains/ung_domain/trash.xml new file mode 100644 index 0000000000000000000000000000000000000000..b8b1532929292ad76238efed8b7e68d4a5101070 --- /dev/null +++ b/bt5/erp5_web_ung_theme/PathTemplateItem/portal_domains/ung_domain/trash.xml @@ -0,0 +1,75 @@ +<?xml version="1.0"?> +<ZopeData> + <record id="1" aka="AAAAAAAAAAE="> + <pickle> + <global name="Domain" module="erp5.portal_type"/> + </pickle> + <pickle> + <dictionary> + <item> + <key> <string>_identity_criterion</string> </key> + <value> + <dictionary> + <item> + <key> <string>validation_state</string> </key> + <value> + <list> + <string>deleted</string> + </list> + </value> + </item> + </dictionary> + </value> + </item> + <item> + <key> <string>_range_criterion</string> </key> + <value> + <dictionary/> + </value> + </item> + <item> + <key> <string>criterion_property</string> </key> + <value> + <tuple> + <string>validation_state</string> + </tuple> + </value> + </item> + <item> + <key> <string>id</string> </key> + <value> <string>trash</string> </value> + </item> + <item> + <key> <string>int_index</string> </key> + <value> <int>4</int> </value> + </item> + <item> + <key> <string>membership_criterion_category</string> </key> + <value> + <tuple/> + </value> + </item> + <item> + <key> <string>portal_type</string> </key> + <value> <string>Domain</string> </value> + </item> + <item> + <key> <string>string_index</string> </key> + <value> + <none/> + </value> + </item> + <item> + <key> <string>test_method_id</string> </key> + <value> + <tuple/> + </value> + </item> + <item> + <key> <string>title</string> </key> + <value> <string>Trash</string> </value> + </item> + </dictionary> + </pickle> + </record> +</ZopeData> diff --git a/bt5/erp5_web_ung_theme/SkinTemplateItem/portal_skins/erp5_web_ung_theme/WebPageModule_generateDomain.xml b/bt5/erp5_web_ung_theme/SkinTemplateItem/portal_skins/erp5_web_ung_theme/WebPageModule_generateDomain.xml index 6af39fc20c9d1feef6f499f2a05d1c3dd3b6d7f1..5815b2ae6c588c642dfa6e5dcfe9f537d5d7aa2b 100644 --- a/bt5/erp5_web_ung_theme/SkinTemplateItem/portal_skins/erp5_web_ung_theme/WebPageModule_generateDomain.xml +++ b/bt5/erp5_web_ung_theme/SkinTemplateItem/portal_skins/erp5_web_ung_theme/WebPageModule_generateDomain.xml @@ -55,6 +55,28 @@ XXX - The generation of domains should be more dynamic because some domains is create manually.\n """\n \n +def getAvailableSubjectList(subject_list=()):\n + """\n + Returns the list of available subjects for all documents\n + located in the current container (if defined) and which\n + already match all subjects of subject_list\n + """\n + subject_list = ()\n + portal_type_list = ["Web Table", "Web Page", "Web Illustration"]\n + kw = dict(portal_type=portal_type_list,\n + subject="!=",)\n + subject_len = len(subject_list)\n + result_list = context.portal_catalog(**kw)\n +\n + subject_list = []\n + for keyword_list in filter(lambda x: x not in subject_list, \n + map(lambda r: r.subject, result_list)):\n + for keyword in keyword_list:\n + if keyword not in subject_list:\n + subject_list.append(keyword)\n +\n + return subject_list\n +\n def appendTempDomain(id, \n title,\n property_dict,\n @@ -71,139 +93,37 @@ def appendTempDomain(id, \n for key, value in property_dict.items():\n domain.setCriterion(key, value)\n \n - if parent.getId() == "ung_domain":\n - domain_list.append(domain)\n return domain\n \n domain_list = []\n validation_state_list = [\'draft\', \'published\', \'shared\']\n \n -if depth == 1:\n - return domain_list\n -\n -appendTempDomain(\'all_document_list\', \n - \'All Documents\', \n - dict(validation_state=validation_state_list))\n - \n -appendTempDomain(\'hidden_document_list\', \n - \'Hidden\', \n - dict(validation_state=[\'hidden\']))\n -\n -appendTempDomain(\'opened_document_list\', \n - \'Opened by me\', \n - dict(local_roles=\'Owner\', validation_state=validation_state_list))\n -\n -appendTempDomain(\'owner_document_list\', \n - \'Owned by me\',\n - dict(local_roles=\'Owner\', validation_state=validation_state_list))\n -\n -appendTempDomain(\'shared_document_list\', \n - \'Shared by me\',\n - dict(validation_state=[\'shared\']))\n -\n -appendTempDomain(\'starred_document_list\',\n - \'Starred\',\n - dict(validation_state=validation_state_list))\n +subject_domain = appendTempDomain(\'by_subject\',\n + \'By Subject\',\n + dict(validation_state=validation_state_list))\n \n -appendTempDomain(\'trash_document_list\',\n - \'Trash\',\n - dict(validation_state=[\'deleted\']))\n +domain_list.append(subject_domain)\n \n -domain = appendTempDomain(\'webpage_module_list\',\n - \'Document by Type\',\n - dict(portal_type=["Web Page", "Web Illustration", "Web Table"],\n - validation_state=validation_state_list))\n +for subject in getAvailableSubjectList():\n + appendTempDomain("subject_" + subject,\n + subject.capitalize(),\n + dict(subject=subject),\n + subject_domain,\n + ("by_subject",),\n + ("by_subject",))\n \n -appendTempDomain(\'subWebPage\',\n - \'Web Page\',\n - dict(validation_state=validation_state_list, portal_type=["Web Page"]),\n - domain,\n - ("webpage_module_list",),\n - ("webpage_module_list",))\n -\n -appendTempDomain(\'subWebTable\',\n - \'Web Table\',\n - dict(validation_state=validation_state_list, portal_type=["Web Table"]),\n - domain,\n - ("webpage_module_list",),\n - ("webpage_module_list",))\n -\n -appendTempDomain(\'subWebIllustration\',\n - \'Web Illustration\',\n - dict(validation_state=validation_state_list, portal_type=["Web Illustration"]),\n - domain,\n - ("webpage_module_list",),\n - ("webpage_module_list",))\n \n return domain_list\n </string> </value> </item> - <item> - <key> <string>_code</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>domain_list</string> - <string>appendTempDomain</string> - <string>validation_state_list</string> - <string>dict</string> - <string>domain</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>WebPageModule_generateDomain</string> </value> </item> - <item> - <key> <string>warnings</string> </key> - <value> - <tuple/> - </value> - </item> </dictionary> </pickle> </record> diff --git a/bt5/erp5_web_ung_theme/SkinTemplateItem/portal_skins/erp5_web_ung_theme/ung_js/ung.js.xml b/bt5/erp5_web_ung_theme/SkinTemplateItem/portal_skins/erp5_web_ung_theme/ung_js/ung.js.xml index d6d105b05cc0f0e8199d4120ae5d1eeb558a8c88..3590ef77cbd2ee1c3023bb7b254624225c1bede0 100644 --- a/bt5/erp5_web_ung_theme/SkinTemplateItem/portal_skins/erp5_web_ung_theme/ung_js/ung.js.xml +++ b/bt5/erp5_web_ung_theme/SkinTemplateItem/portal_skins/erp5_web_ung_theme/ung_js/ung.js.xml @@ -146,13 +146,16 @@ $(document).ready(function(){\n event.preventDefault();\n $("#upload_document").dialog("open");\n });\n - if ($("div.gadget-column").length == 1) {\n - $("a.domain_selected").text($("a.tree-open").text());\n - $("tbody tr td.listbox-table-domain-tree-cell a").each(function(){\n + $("tbody tr td.listbox-table-domain-tree-cell a").each(function(){\n if ($(this).text().length == 16){\n $(this).css("padding-right", "101px")\n }\n - });\n + if ($(this).text().length > 16){\n + $(this).css("padding-right", "35px")\n + }\n + });\n + if ($("div.gadget-column").length == 1) {\n + $("a.domain_selected").text($("a.tree-open").text());\n $("a.tree-open, a.tree-closed").each(function(){\n if ($(this).text() == "Starred" || $(this).text() == "Hidden")\n $(this).html($(this).text() + createBlankSpace(11));\n diff --git a/bt5/erp5_web_ung_theme/SkinTemplateItem/portal_skins/erp5_web_ung_theme/ung_theme.css.xml b/bt5/erp5_web_ung_theme/SkinTemplateItem/portal_skins/erp5_web_ung_theme/ung_theme.css.xml index 526735da2d8eed8675b866f679ce8a93ef19ef54..f162dc58c34cf507b2ff85748924c576c742b1be 100644 --- a/bt5/erp5_web_ung_theme/SkinTemplateItem/portal_skins/erp5_web_ung_theme/ung_theme.css.xml +++ b/bt5/erp5_web_ung_theme/SkinTemplateItem/portal_skins/erp5_web_ung_theme/ung_theme.css.xml @@ -835,7 +835,7 @@ table.listbox-table-domain-tree {\n \n td.listbox-table-domain-tree-cell a {\n padding-bottom: 3px;\n - padding-right: 125.3px;\n + padding-right: 102px;\n padding-top: 3px;\n }\n \n diff --git a/bt5/erp5_web_ung_theme/bt/change_log b/bt5/erp5_web_ung_theme/bt/change_log index b6d32af716a27d6ecd50ff3909dd5ffd2948e0fe..e71862a7f89072153a770c210062fe7adbd7ac32 100644 --- a/bt5/erp5_web_ung_theme/bt/change_log +++ b/bt5/erp5_web_ung_theme/bt/change_log @@ -1,3 +1,6 @@ +2010-01-05 gabriel +* Add Domains and clean up the code that generates domains + 2010-12-28 gabriel * Added javascript code to be possible choose the theme to Spreadsheet editor and save it diff --git a/bt5/erp5_web_ung_theme/bt/revision b/bt5/erp5_web_ung_theme/bt/revision index 4b9bce48238e62028651de99e7f2b218771cd806..d7019ae2ee5ed8c764ee5c7c4dd54a2e9d6c576d 100644 --- a/bt5/erp5_web_ung_theme/bt/revision +++ b/bt5/erp5_web_ung_theme/bt/revision @@ -1 +1 @@ -148 \ No newline at end of file +149 \ No newline at end of file