From 86069b688c91567f6e2f01b3b29252a6800e2e43 Mon Sep 17 00:00:00 2001 From: Yusei Tahara <yusei@nexedi.com> Date: Tue, 28 Sep 2010 09:21:21 +0000 Subject: [PATCH] 2010-09-28 yusei * Add grand_grand_grand_grand_parent_specialise_portal_type and grand_grand_grand_grand_parent_specialise_reference. git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@38705 20353a03-c40f-0410-a6d1-a30d3c3de9de --- ...d_grand_parent_specialise.catalog_keys.xml | 2 + ...nd_grand_grand_grand_parent_specialise.xml | 203 ++++++++++++++++++ .../related_key_list.xml | 2 + .../erp5_mysql_innodb_catalog/bt/change_log | 3 + .../erp5_mysql_innodb_catalog/bt/revision | 2 +- .../bt/template_catalog_method_id_list | 1 + .../bt/template_catalog_related_key_list | 4 +- 7 files changed, 215 insertions(+), 2 deletions(-) create mode 100644 product/ERP5/bootstrap/erp5_mysql_innodb_catalog/CatalogMethodTemplateItem/portal_catalog/erp5_mysql_innodb/z_related_grand_grand_grand_grand_parent_specialise.catalog_keys.xml create mode 100644 product/ERP5/bootstrap/erp5_mysql_innodb_catalog/CatalogMethodTemplateItem/portal_catalog/erp5_mysql_innodb/z_related_grand_grand_grand_grand_parent_specialise.xml diff --git a/product/ERP5/bootstrap/erp5_mysql_innodb_catalog/CatalogMethodTemplateItem/portal_catalog/erp5_mysql_innodb/z_related_grand_grand_grand_grand_parent_specialise.catalog_keys.xml b/product/ERP5/bootstrap/erp5_mysql_innodb_catalog/CatalogMethodTemplateItem/portal_catalog/erp5_mysql_innodb/z_related_grand_grand_grand_grand_parent_specialise.catalog_keys.xml new file mode 100644 index 0000000000..a540f9431e --- /dev/null +++ b/product/ERP5/bootstrap/erp5_mysql_innodb_catalog/CatalogMethodTemplateItem/portal_catalog/erp5_mysql_innodb/z_related_grand_grand_grand_grand_parent_specialise.catalog_keys.xml @@ -0,0 +1,2 @@ +<catalog_method> +</catalog_method> diff --git a/product/ERP5/bootstrap/erp5_mysql_innodb_catalog/CatalogMethodTemplateItem/portal_catalog/erp5_mysql_innodb/z_related_grand_grand_grand_grand_parent_specialise.xml b/product/ERP5/bootstrap/erp5_mysql_innodb_catalog/CatalogMethodTemplateItem/portal_catalog/erp5_mysql_innodb/z_related_grand_grand_grand_grand_parent_specialise.xml new file mode 100644 index 0000000000..4fe00eb0d5 --- /dev/null +++ b/product/ERP5/bootstrap/erp5_mysql_innodb_catalog/CatalogMethodTemplateItem/portal_catalog/erp5_mysql_innodb/z_related_grand_grand_grand_grand_parent_specialise.xml @@ -0,0 +1,203 @@ +<?xml version="1.0"?> +<ZopeData> + <record id="1" aka="AAAAAAAAAAE="> + <pickle> + <global name="SQL" module="Products.ZSQLMethods.SQL"/> + </pickle> + <pickle> + <dictionary> + <item> + <key> <string>_arg</string> </key> + <value> + <object> + <klass> + <global name="Args" module="Shared.DC.ZRDB.Aqueduct"/> + </klass> + <tuple/> + <state> + <dictionary> + <item> + <key> <string>_data</string> </key> + <value> + <dictionary> + <item> + <key> <string>table_0</string> </key> + <value> + <dictionary/> + </value> + </item> + <item> + <key> <string>table_1</string> </key> + <value> + <dictionary/> + </value> + </item> + <item> + <key> <string>table_2</string> </key> + <value> + <dictionary/> + </value> + </item> + <item> + <key> <string>table_3</string> </key> + <value> + <dictionary/> + </value> + </item> + <item> + <key> <string>table_4</string> </key> + <value> + <dictionary/> + </value> + </item> + <item> + <key> <string>table_5</string> </key> + <value> + <dictionary/> + </value> + </item> + </dictionary> + </value> + </item> + <item> + <key> <string>_keys</string> </key> + <value> + <list> + <string>table_0</string> + <string>table_1</string> + <string>table_2</string> + <string>table_3</string> + <string>table_4</string> + <string>table_5</string> + </list> + </value> + </item> + </dictionary> + </state> + </object> + </value> + </item> + <item> + <key> <string>allow_simple_one_argument_traversal</string> </key> + <value> + <none/> + </value> + </item> + <item> + <key> <string>arguments_src</string> </key> + <value> <string>table_0\r\n +table_1\r\n +table_2\r\n +table_3\r\n +table_4\r\n +table_5</string> </value> + </item> + <item> + <key> <string>cache_time_</string> </key> + <value> <int>0</int> </value> + </item> + <item> + <key> <string>class_file_</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>class_name_</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>connection_hook</string> </key> + <value> + <none/> + </value> + </item> + <item> + <key> <string>connection_id</string> </key> + <value> <string>erp5_sql_connection</string> </value> + </item> + <item> + <key> <string>id</string> </key> + <value> <string>z_related_grand_grand_grand_grand_parent_specialise</string> </value> + </item> + <item> + <key> <string>max_cache_</string> </key> + <value> <int>100</int> </value> + </item> + <item> + <key> <string>max_rows_</string> </key> + <value> <int>1000</int> </value> + </item> + <item> + <key> <string>src</string> </key> + <value> <string encoding="cdata"><![CDATA[ + +<dtml-var table_0>.base_category_uid = <dtml-var "portal_categories.specialise.getUid()">\n +AND <dtml-var table_1>.uid = catalog.parent_uid\n +AND <dtml-var table_2>.uid = <dtml-var table_1>.parent_uid\n +AND <dtml-var table_3>.uid = <dtml-var table_2>.parent_uid\n +AND <dtml-var table_4>.uid = <dtml-var table_3>.parent_uid\n +AND <dtml-var table_0>.uid = <dtml-var table_4>.parent_uid\n +AND <dtml-var table_5>.uid = <dtml-var table_0>.category_uid\n + + +]]></string> </value> + </item> + <item> + <key> <string>template</string> </key> + <value> + <object> + <klass> + <global name="__newobj__" module="copy_reg"/> + </klass> + <tuple> + <global name="SQL" module="Shared.DC.ZRDB.DA"/> + </tuple> + <state> + <dictionary> + <item> + <key> <string>__name__</string> </key> + <value> <string encoding="cdata"><![CDATA[ + +<string> + +]]></string> </value> + </item> + <item> + <key> <string>_vars</string> </key> + <value> + <dictionary/> + </value> + </item> + <item> + <key> <string>globals</string> </key> + <value> + <dictionary/> + </value> + </item> + <item> + <key> <string>raw</string> </key> + <value> <string encoding="cdata"><![CDATA[ + +<dtml-var table_0>.base_category_uid = <dtml-var "portal_categories.specialise.getUid()">\n +AND <dtml-var table_1>.uid = catalog.parent_uid\n +AND <dtml-var table_2>.uid = <dtml-var table_1>.parent_uid\n +AND <dtml-var table_3>.uid = <dtml-var table_2>.parent_uid\n +AND <dtml-var table_4>.uid = <dtml-var table_3>.parent_uid\n +AND <dtml-var table_0>.uid = <dtml-var table_4>.parent_uid\n +AND <dtml-var table_5>.uid = <dtml-var table_0>.category_uid\n + + +]]></string> </value> + </item> + </dictionary> + </state> + </object> + </value> + </item> + <item> + <key> <string>title</string> </key> + <value> <string></string> </value> + </item> + </dictionary> + </pickle> + </record> +</ZopeData> diff --git a/product/ERP5/bootstrap/erp5_mysql_innodb_catalog/CatalogRelatedKeyTemplateItem/related_key_list.xml b/product/ERP5/bootstrap/erp5_mysql_innodb_catalog/CatalogRelatedKeyTemplateItem/related_key_list.xml index 166f2dd753..dce33e4099 100644 --- a/product/ERP5/bootstrap/erp5_mysql_innodb_catalog/CatalogRelatedKeyTemplateItem/related_key_list.xml +++ b/product/ERP5/bootstrap/erp5_mysql_innodb_catalog/CatalogRelatedKeyTemplateItem/related_key_list.xml @@ -7,6 +7,8 @@ <key>explanation_portal_type | movement,catalog/portal_type/z_related_explanation</key> <key>explanation_simulation_state | movement,catalog/simulation_state/z_related_explanation</key> <key>grand_grand_grand_grand_grand_parent_simulation_state | catalog,catalog,catalog,catalog,catalog,catalog/simulation_state/z_related_grand_grand_grand_grand_grand_parent</key> + <key>grand_grand_grand_grand_parent_specialise_portal_type | category,catalog,catalog,catalog,catalog,catalog/portal_type/z_related_grand_grand_grand_grand_parent_specialise</key> + <key>grand_grand_grand_grand_parent_specialise_reference | category,catalog,catalog,catalog,catalog,catalog/reference/z_related_grand_grand_grand_grand_parent_specialise</key> <key>grand_grand_grand_parent_delivery_portal_type | category,catalog,catalog,catalog,catalog/portal_type/z_related_grand_grand_grand_parent_delivery</key> <key>grand_parent_delivery_portal_type | category,catalog,catalog/portal_type/z_related_grand_parent_delivery</key> <key>grand_parent_portal_type | catalog,catalog/portal_type/z_related_grand_parent</key> diff --git a/product/ERP5/bootstrap/erp5_mysql_innodb_catalog/bt/change_log b/product/ERP5/bootstrap/erp5_mysql_innodb_catalog/bt/change_log index daef32ce04..a5c7cdac97 100644 --- a/product/ERP5/bootstrap/erp5_mysql_innodb_catalog/bt/change_log +++ b/product/ERP5/bootstrap/erp5_mysql_innodb_catalog/bt/change_log @@ -1,3 +1,6 @@ +2010-09-28 yusei +* Add grand_grand_grand_grand_parent_specialise_portal_type and grand_grand_grand_grand_parent_specialise_reference. + 2010-08-20 tatuya * Add grand_parent_delivery_portal_type, and grand_grand_grand_parent_delivery_portal_type related keys so that we will select the delivery portal type of a simulation movement. diff --git a/product/ERP5/bootstrap/erp5_mysql_innodb_catalog/bt/revision b/product/ERP5/bootstrap/erp5_mysql_innodb_catalog/bt/revision index 05cf25896d..5e78f1eb7e 100644 --- a/product/ERP5/bootstrap/erp5_mysql_innodb_catalog/bt/revision +++ b/product/ERP5/bootstrap/erp5_mysql_innodb_catalog/bt/revision @@ -1 +1 @@ -201 \ No newline at end of file +203 \ No newline at end of file diff --git a/product/ERP5/bootstrap/erp5_mysql_innodb_catalog/bt/template_catalog_method_id_list b/product/ERP5/bootstrap/erp5_mysql_innodb_catalog/bt/template_catalog_method_id_list index c487e91243..1690555c3e 100644 --- a/product/ERP5/bootstrap/erp5_mysql_innodb_catalog/bt/template_catalog_method_id_list +++ b/product/ERP5/bootstrap/erp5_mysql_innodb_catalog/bt/template_catalog_method_id_list @@ -90,6 +90,7 @@ erp5_mysql_innodb/z_related_career_skill erp5_mysql_innodb/z_related_explanation erp5_mysql_innodb/z_related_function_uid_from_stock erp5_mysql_innodb/z_related_grand_grand_grand_grand_grand_parent +erp5_mysql_innodb/z_related_grand_grand_grand_grand_parent_specialise erp5_mysql_innodb/z_related_grand_grand_grand_parent_delivery erp5_mysql_innodb/z_related_grand_parent erp5_mysql_innodb/z_related_grand_parent_delivery diff --git a/product/ERP5/bootstrap/erp5_mysql_innodb_catalog/bt/template_catalog_related_key_list b/product/ERP5/bootstrap/erp5_mysql_innodb_catalog/bt/template_catalog_related_key_list index b911920848..14f461d8d7 100644 --- a/product/ERP5/bootstrap/erp5_mysql_innodb_catalog/bt/template_catalog_related_key_list +++ b/product/ERP5/bootstrap/erp5_mysql_innodb_catalog/bt/template_catalog_related_key_list @@ -56,4 +56,6 @@ predicate_category_base_category_uid | predicate_category/base_category_uid/z_re predicate_category_category_strict_membership | predicate_category/category_strict_membership/z_related_predicate_category predicate_category_category_uid | predicate_category/category_uid/z_related_predicate_category grand_parent_delivery_portal_type | category,catalog,catalog/portal_type/z_related_grand_parent_delivery -grand_grand_grand_parent_delivery_portal_type | category,catalog,catalog,catalog,catalog/portal_type/z_related_grand_grand_grand_parent_delivery \ No newline at end of file +grand_grand_grand_parent_delivery_portal_type | category,catalog,catalog,catalog,catalog/portal_type/z_related_grand_grand_grand_parent_delivery +grand_grand_grand_grand_parent_specialise_portal_type | category,catalog,catalog,catalog,catalog,catalog/portal_type/z_related_grand_grand_grand_grand_parent_specialise +grand_grand_grand_grand_parent_specialise_reference | category,catalog,catalog,catalog,catalog,catalog/reference/z_related_grand_grand_grand_grand_parent_specialise \ No newline at end of file -- 2.30.9