diff --git a/bt5/erp5_base/CatalogMethodTemplateItem/portal_catalog/erp5_mysql_innodb/z_related_default_email.catalog_keys.xml b/bt5/erp5_base/CatalogMethodTemplateItem/portal_catalog/erp5_mysql_innodb/z_related_default_email.catalog_keys.xml new file mode 100644 index 0000000000000000000000000000000000000000..7d6996cb9cc91ab4fe5229d7497a904d6d982ee2 --- /dev/null +++ b/bt5/erp5_base/CatalogMethodTemplateItem/portal_catalog/erp5_mysql_innodb/z_related_default_email.catalog_keys.xml @@ -0,0 +1,2 @@ +<catalog_method> +</catalog_method> \ No newline at end of file diff --git a/bt5/erp5_base/CatalogMethodTemplateItem/portal_catalog/erp5_mysql_innodb/z_related_default_email.xml b/bt5/erp5_base/CatalogMethodTemplateItem/portal_catalog/erp5_mysql_innodb/z_related_default_email.xml new file mode 100644 index 0000000000000000000000000000000000000000..025def634460f1b964664b2ced61e1311f4842d8 --- /dev/null +++ b/bt5/erp5_base/CatalogMethodTemplateItem/portal_catalog/erp5_mysql_innodb/z_related_default_email.xml @@ -0,0 +1,146 @@ +<?xml version="1.0"?> +<ZopeData> + <record id="1" aka="AAAAAAAAAAE="> + <pickle> + <tuple> + <global name="SQL" module="Products.ZSQLMethods.SQL"/> + <tuple/> + </tuple> + </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>query_table</string> </key> + <value> + <dictionary/> + </value> + </item> + <item> + <key> <string>table_0</string> </key> + <value> + <dictionary/> + </value> + </item> + <item> + <key> <string>table_1</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>query_table</string> + </list> + </value> + </item> + </dictionary> + </state> + </object> + </value> + </item> + <item> + <key> <string>arguments_src</string> </key> + <value> <string>table_0\r\n +table_1\r\n +query_table</string> </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_default_email</string> </value> + </item> + <item> + <key> <string>src</string> </key> + <value> <string encoding="cdata"><![CDATA[ + +<dtml-var table_0>.uid = <dtml-var table_1>.uid\n +AND <dtml-var table_0>.parent_uid = <dtml-var query_table>.uid\n +AND <dtml-var table_0>.portal_type = \'Email\'\n +AND <dtml-var table_0>.id = \'default_email\'\n +\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>.uid = <dtml-var table_1>.uid\n +AND <dtml-var table_0>.parent_uid = <dtml-var query_table>.uid\n +AND <dtml-var table_0>.portal_type = \'Email\'\n +AND <dtml-var table_0>.id = \'default_email\'\n +\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/bt5/erp5_base/CatalogRelatedKeyTemplateItem/related_key_list.xml b/bt5/erp5_base/CatalogRelatedKeyTemplateItem/related_key_list.xml index 80b93cb1d66525a5ce63dd3953529d876b6d3c2a..de826030e0fb687296ab10cfed4175c0e2400ecb 100644 --- a/bt5/erp5_base/CatalogRelatedKeyTemplateItem/related_key_list.xml +++ b/bt5/erp5_base/CatalogRelatedKeyTemplateItem/related_key_list.xml @@ -1,5 +1,6 @@ <key_list> - <key>destination_person_title | category,catalog/title/z_related_destination_person</key> - <key>source_organisation_title | category,catalog/title/z_related_source_organisation</key> - <key>source_person_title | category,catalog/title/z_related_source_person</key> -</key_list> \ No newline at end of file + <key>default_email_text | catalog,email/url_string/z_related_default_email</key> + <key>destination_person_title | category,catalog/title/z_related_destination_person</key> + <key>source_organisation_title | category,catalog/title/z_related_source_organisation</key> + <key>source_person_title | category,catalog/title/z_related_source_person</key> +</key_list> diff --git a/bt5/erp5_base/bt/revision b/bt5/erp5_base/bt/revision index 72b67e0ede18e026aed402b468c5010191c5929c..55b22b1aa9f24be59e8f86153e626c19e03f575e 100644 --- a/bt5/erp5_base/bt/revision +++ b/bt5/erp5_base/bt/revision @@ -1 +1 @@ -579 \ No newline at end of file +580 \ No newline at end of file diff --git a/bt5/erp5_base/bt/template_catalog_method_id_list b/bt5/erp5_base/bt/template_catalog_method_id_list index f1da51b3718e37ad19e99d0ac2bc05e271168590..3bb5ab54b668a3ad53abe74186796b4c67f7d3b5 100644 --- a/bt5/erp5_base/bt/template_catalog_method_id_list +++ b/bt5/erp5_base/bt/template_catalog_method_id_list @@ -1,3 +1,4 @@ +erp5_mysql_innodb/z_related_default_email erp5_mysql_innodb/z_related_destination_person erp5_mysql_innodb/z_related_source_organisation erp5_mysql_innodb/z_related_source_person \ No newline at end of file diff --git a/bt5/erp5_base/bt/template_catalog_related_key_list b/bt5/erp5_base/bt/template_catalog_related_key_list index d35af24cde68290faf77b7bcf375bc0db924ebad..d1b2297c95018a8554f0480c838caabbae4e4eb7 100644 --- a/bt5/erp5_base/bt/template_catalog_related_key_list +++ b/bt5/erp5_base/bt/template_catalog_related_key_list @@ -1,3 +1,4 @@ source_organisation_title | category,catalog/title/z_related_source_organisation source_person_title | category,catalog/title/z_related_source_person -destination_person_title | category,catalog/title/z_related_destination_person \ No newline at end of file +destination_person_title | category,catalog/title/z_related_destination_person +default_email_text | catalog,email/url_string/z_related_default_email \ No newline at end of file