From 288cde53ceec81d9e54cd4dd159082b2cc562f53 Mon Sep 17 00:00:00 2001 From: Jean-Paul Smets <jp@nexedi.com> Date: Mon, 12 Mar 2007 16:29:08 +0000 Subject: [PATCH] initia upload git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@13371 20353a03-c40f-0410-a6d1-a30d3c3de9de --- ...g_makeAdvancedSearchQuery.catalog_keys.xml | 2 + .../SQLCatalog_makeAdvancedSearchQuery.xml | 286 ++++++++++++++++++ ...alog_makeQuickSearchQuery.catalog_keys.xml | 2 + .../SQLCatalog_makeQuickSearchQuery.xml | 160 ++++++++++ .../z0_drop_email.catalog_keys.xml | 5 + .../erp5_mysql_innodb/z0_drop_email.xml | 116 +++++++ .../z0_uncatalog_email.catalog_keys.xml | 16 + .../erp5_mysql_innodb/z0_uncatalog_email.xml | 133 ++++++++ .../z0_uncatalog_versioning.catalog_keys.xml | 5 + .../z0_uncatalog_versioning.xml | 165 ++++++++++ .../z_catalog_email_list.catalog_keys.xml | 16 + .../z_catalog_email_list.xml | 185 +++++++++++ ...z_catalog_versioning_list.catalog_keys.xml | 5 + .../z_catalog_versioning_list.xml | 219 ++++++++++++++ .../z_create_email.catalog_keys.xml | 2 + .../erp5_mysql_innodb/z_create_email.xml | 132 ++++++++ .../z_create_versioning.catalog_keys.xml | 5 + .../erp5_mysql_innodb/z_create_versioning.xml | 140 +++++++++ .../result_table_list.xml | 4 + bt5/erp5_dms_mysql_innodb/bt/categories_list | 0 bt5/erp5_dms_mysql_innodb/bt/change_log | 1 + bt5/erp5_dms_mysql_innodb/bt/copyright_list | 1 + bt5/erp5_dms_mysql_innodb/bt/dependency_list | 1 + bt5/erp5_dms_mysql_innodb/bt/description | 1 + bt5/erp5_dms_mysql_innodb/bt/license | 1 + bt5/erp5_dms_mysql_innodb/bt/maintainer_list | 2 + bt5/erp5_dms_mysql_innodb/bt/provision_list | 0 bt5/erp5_dms_mysql_innodb/bt/publication_url | 1 + bt5/erp5_dms_mysql_innodb/bt/revision | 1 + bt5/erp5_dms_mysql_innodb/bt/short_title | 1 + .../bt/template_action_path_list | 0 .../bt/template_base_category_list | 0 .../bt/template_catalog_full_text_key_list | 0 .../bt/template_catalog_keyword_key_list | 0 .../bt/template_catalog_method_id_list | 9 + .../bt/template_catalog_multivalue_key_list | 0 .../bt/template_catalog_related_key_list | 0 .../bt/template_catalog_request_key_list | 0 .../bt/template_catalog_result_key_list | 0 .../bt/template_catalog_result_table_list | 2 + .../bt/template_catalog_topic_key_list | 0 .../bt/template_constraint_id_list | 0 .../bt/template_document_id_list | 0 .../bt/template_extension_id_list | 0 .../bt/template_format_version | 1 + .../bt/template_local_roles_list | 0 .../bt/template_message_translation_list | 0 .../bt/template_module_id_list | 0 .../bt/template_path_list | 0 ...late_portal_type_allowed_content_type_list | 0 .../template_portal_type_base_category_list | 0 ...plate_portal_type_hidden_content_type_list | 0 .../bt/template_portal_type_id_list | 0 .../template_portal_type_property_sheet_list | 0 .../bt/template_portal_type_roles_list | 0 .../template_portal_type_workflow_chain_list | 0 .../bt/template_preference_list | 0 .../bt/template_product_id_list | 0 .../bt/template_property_sheet_id_list | 0 .../bt/template_role_list | 0 .../bt/template_site_property_id_list | 0 .../bt/template_skin_id_list | 0 .../bt/template_test_id_list | 0 ...template_update_business_template_workflow | 1 + .../bt/template_update_tool | 1 + .../bt/template_workflow_id_list | 0 bt5/erp5_dms_mysql_innodb/bt/title | 1 + bt5/erp5_dms_mysql_innodb/bt/version | 1 + 68 files changed, 1624 insertions(+) create mode 100644 bt5/erp5_dms_mysql_innodb/CatalogMethodTemplateItem/portal_catalog/erp5_mysql_innodb/SQLCatalog_makeAdvancedSearchQuery.catalog_keys.xml create mode 100644 bt5/erp5_dms_mysql_innodb/CatalogMethodTemplateItem/portal_catalog/erp5_mysql_innodb/SQLCatalog_makeAdvancedSearchQuery.xml create mode 100644 bt5/erp5_dms_mysql_innodb/CatalogMethodTemplateItem/portal_catalog/erp5_mysql_innodb/SQLCatalog_makeQuickSearchQuery.catalog_keys.xml create mode 100644 bt5/erp5_dms_mysql_innodb/CatalogMethodTemplateItem/portal_catalog/erp5_mysql_innodb/SQLCatalog_makeQuickSearchQuery.xml create mode 100644 bt5/erp5_dms_mysql_innodb/CatalogMethodTemplateItem/portal_catalog/erp5_mysql_innodb/z0_drop_email.catalog_keys.xml create mode 100644 bt5/erp5_dms_mysql_innodb/CatalogMethodTemplateItem/portal_catalog/erp5_mysql_innodb/z0_drop_email.xml create mode 100644 bt5/erp5_dms_mysql_innodb/CatalogMethodTemplateItem/portal_catalog/erp5_mysql_innodb/z0_uncatalog_email.catalog_keys.xml create mode 100644 bt5/erp5_dms_mysql_innodb/CatalogMethodTemplateItem/portal_catalog/erp5_mysql_innodb/z0_uncatalog_email.xml create mode 100644 bt5/erp5_dms_mysql_innodb/CatalogMethodTemplateItem/portal_catalog/erp5_mysql_innodb/z0_uncatalog_versioning.catalog_keys.xml create mode 100644 bt5/erp5_dms_mysql_innodb/CatalogMethodTemplateItem/portal_catalog/erp5_mysql_innodb/z0_uncatalog_versioning.xml create mode 100644 bt5/erp5_dms_mysql_innodb/CatalogMethodTemplateItem/portal_catalog/erp5_mysql_innodb/z_catalog_email_list.catalog_keys.xml create mode 100644 bt5/erp5_dms_mysql_innodb/CatalogMethodTemplateItem/portal_catalog/erp5_mysql_innodb/z_catalog_email_list.xml create mode 100644 bt5/erp5_dms_mysql_innodb/CatalogMethodTemplateItem/portal_catalog/erp5_mysql_innodb/z_catalog_versioning_list.catalog_keys.xml create mode 100644 bt5/erp5_dms_mysql_innodb/CatalogMethodTemplateItem/portal_catalog/erp5_mysql_innodb/z_catalog_versioning_list.xml create mode 100644 bt5/erp5_dms_mysql_innodb/CatalogMethodTemplateItem/portal_catalog/erp5_mysql_innodb/z_create_email.catalog_keys.xml create mode 100644 bt5/erp5_dms_mysql_innodb/CatalogMethodTemplateItem/portal_catalog/erp5_mysql_innodb/z_create_email.xml create mode 100644 bt5/erp5_dms_mysql_innodb/CatalogMethodTemplateItem/portal_catalog/erp5_mysql_innodb/z_create_versioning.catalog_keys.xml create mode 100644 bt5/erp5_dms_mysql_innodb/CatalogMethodTemplateItem/portal_catalog/erp5_mysql_innodb/z_create_versioning.xml create mode 100644 bt5/erp5_dms_mysql_innodb/CatalogResultTableTemplateItem/result_table_list.xml create mode 100644 bt5/erp5_dms_mysql_innodb/bt/categories_list create mode 100644 bt5/erp5_dms_mysql_innodb/bt/change_log create mode 100644 bt5/erp5_dms_mysql_innodb/bt/copyright_list create mode 100644 bt5/erp5_dms_mysql_innodb/bt/dependency_list create mode 100644 bt5/erp5_dms_mysql_innodb/bt/description create mode 100644 bt5/erp5_dms_mysql_innodb/bt/license create mode 100644 bt5/erp5_dms_mysql_innodb/bt/maintainer_list create mode 100644 bt5/erp5_dms_mysql_innodb/bt/provision_list create mode 100644 bt5/erp5_dms_mysql_innodb/bt/publication_url create mode 100644 bt5/erp5_dms_mysql_innodb/bt/revision create mode 100644 bt5/erp5_dms_mysql_innodb/bt/short_title create mode 100644 bt5/erp5_dms_mysql_innodb/bt/template_action_path_list create mode 100644 bt5/erp5_dms_mysql_innodb/bt/template_base_category_list create mode 100644 bt5/erp5_dms_mysql_innodb/bt/template_catalog_full_text_key_list create mode 100644 bt5/erp5_dms_mysql_innodb/bt/template_catalog_keyword_key_list create mode 100644 bt5/erp5_dms_mysql_innodb/bt/template_catalog_method_id_list create mode 100644 bt5/erp5_dms_mysql_innodb/bt/template_catalog_multivalue_key_list create mode 100644 bt5/erp5_dms_mysql_innodb/bt/template_catalog_related_key_list create mode 100644 bt5/erp5_dms_mysql_innodb/bt/template_catalog_request_key_list create mode 100644 bt5/erp5_dms_mysql_innodb/bt/template_catalog_result_key_list create mode 100644 bt5/erp5_dms_mysql_innodb/bt/template_catalog_result_table_list create mode 100644 bt5/erp5_dms_mysql_innodb/bt/template_catalog_topic_key_list create mode 100644 bt5/erp5_dms_mysql_innodb/bt/template_constraint_id_list create mode 100644 bt5/erp5_dms_mysql_innodb/bt/template_document_id_list create mode 100644 bt5/erp5_dms_mysql_innodb/bt/template_extension_id_list create mode 100644 bt5/erp5_dms_mysql_innodb/bt/template_format_version create mode 100644 bt5/erp5_dms_mysql_innodb/bt/template_local_roles_list create mode 100644 bt5/erp5_dms_mysql_innodb/bt/template_message_translation_list create mode 100644 bt5/erp5_dms_mysql_innodb/bt/template_module_id_list create mode 100644 bt5/erp5_dms_mysql_innodb/bt/template_path_list create mode 100644 bt5/erp5_dms_mysql_innodb/bt/template_portal_type_allowed_content_type_list create mode 100644 bt5/erp5_dms_mysql_innodb/bt/template_portal_type_base_category_list create mode 100644 bt5/erp5_dms_mysql_innodb/bt/template_portal_type_hidden_content_type_list create mode 100644 bt5/erp5_dms_mysql_innodb/bt/template_portal_type_id_list create mode 100644 bt5/erp5_dms_mysql_innodb/bt/template_portal_type_property_sheet_list create mode 100644 bt5/erp5_dms_mysql_innodb/bt/template_portal_type_roles_list create mode 100644 bt5/erp5_dms_mysql_innodb/bt/template_portal_type_workflow_chain_list create mode 100644 bt5/erp5_dms_mysql_innodb/bt/template_preference_list create mode 100644 bt5/erp5_dms_mysql_innodb/bt/template_product_id_list create mode 100644 bt5/erp5_dms_mysql_innodb/bt/template_property_sheet_id_list create mode 100644 bt5/erp5_dms_mysql_innodb/bt/template_role_list create mode 100644 bt5/erp5_dms_mysql_innodb/bt/template_site_property_id_list create mode 100644 bt5/erp5_dms_mysql_innodb/bt/template_skin_id_list create mode 100644 bt5/erp5_dms_mysql_innodb/bt/template_test_id_list create mode 100644 bt5/erp5_dms_mysql_innodb/bt/template_update_business_template_workflow create mode 100644 bt5/erp5_dms_mysql_innodb/bt/template_update_tool create mode 100644 bt5/erp5_dms_mysql_innodb/bt/template_workflow_id_list create mode 100644 bt5/erp5_dms_mysql_innodb/bt/title create mode 100644 bt5/erp5_dms_mysql_innodb/bt/version diff --git a/bt5/erp5_dms_mysql_innodb/CatalogMethodTemplateItem/portal_catalog/erp5_mysql_innodb/SQLCatalog_makeAdvancedSearchQuery.catalog_keys.xml b/bt5/erp5_dms_mysql_innodb/CatalogMethodTemplateItem/portal_catalog/erp5_mysql_innodb/SQLCatalog_makeAdvancedSearchQuery.catalog_keys.xml new file mode 100644 index 0000000000..7d6996cb9c --- /dev/null +++ b/bt5/erp5_dms_mysql_innodb/CatalogMethodTemplateItem/portal_catalog/erp5_mysql_innodb/SQLCatalog_makeAdvancedSearchQuery.catalog_keys.xml @@ -0,0 +1,2 @@ +<catalog_method> +</catalog_method> \ No newline at end of file diff --git a/bt5/erp5_dms_mysql_innodb/CatalogMethodTemplateItem/portal_catalog/erp5_mysql_innodb/SQLCatalog_makeAdvancedSearchQuery.xml b/bt5/erp5_dms_mysql_innodb/CatalogMethodTemplateItem/portal_catalog/erp5_mysql_innodb/SQLCatalog_makeAdvancedSearchQuery.xml new file mode 100644 index 0000000000..4a77270689 --- /dev/null +++ b/bt5/erp5_dms_mysql_innodb/CatalogMethodTemplateItem/portal_catalog/erp5_mysql_innodb/SQLCatalog_makeAdvancedSearchQuery.xml @@ -0,0 +1,286 @@ +<?xml version="1.0"?> +<ZopeData> + <record id="1" aka="AAAAAAAAAAE="> + <pickle> + <tuple> + <tuple> + <string>Products.PythonScripts.PythonScript</string> + <string>PythonScript</string> + </tuple> + <none/> + </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 encoding="cdata"><![CDATA[ + +"""\n +This scripts parses a long string and does the following:\n +- processes arguments for searching by any category\n +- selects search mode\n +- adds creation and modification date clauses\n +- searches\n +- if requested, filters result so that only the user\'s docs are returned\n +- if requested, filters result to return only the newest versions\n +"""\n +from Products.ZSQLCatalog.SQLCatalog import Query\n +from Products.ZSQLCatalog.SQLCatalog import ComplexQuery\n +\n +if not sstr: return None\n +\n +args = context.parseSearchString(sstr)\n +query_list = []\n +\n +# process searching by category\n +cats = []\n +bases = context.portal_categories.getBaseCategoryList()\n +for k,v in args.items():\n + if k in bases:\n + args[k + \'_relative_url\'] = k + \'/\' + v\n +\n +# expand simplified notation of search mode\n +mode = args.get(\'mode\')\n +modemap = { \'natural\' : 0,\n + \'boolean\' : \'in_boolean_mode\',\n + \'expanded\': \'with_query_expansion\'}\n +if mode and modemap.has_key(mode):\n + args[\'SearchableText\'] = dict(query=args[\'SearchableText\'], search_mode=modemap[mode])\n +\n +# a hack because SQLCatalog wants table.key now \n +# dunno if it is a bug or a feature\n +if args.has_key(\'SearchableText\'):\n + args[\'full_text.SearchableText\'] = args[\'SearchableText\']\n + args.pop(\'SearchableText\')\n +\n +cf = kw.get(\'creation_from\')\n +ct = kw.get(\'creation_to\')\n +mf = kw.get(\'modification_from\')\n +mt = kw.get(\'modification_to\')\n +\n +wheres = []\n +if cf:\n + wheres.append(\'creation_date >"\' + cf.strftime(\'%Y-%m-%d\') + \'"\')\n +if ct:\n + wheres.append(\'creation_date <"\' + cf.strftime(\'%Y-%m-%d\') + \'"\')\n +if mf:\n + wheres.append(\'modification_date >"\' + cf.strftime(\'%Y-%m-%d\') + \'"\')\n +if mt:\n + wheres.append(\'modification_date <"\' + cf.strftime(\'%Y-%m-%d\') + \'"\')\n +if wheres != []:\n + args[\'where_expression\'] = \' AND \'.join(wheres)\n +\n +# We search in any language by default\n +if args.get(\'language\') == \'0\': args.pop(\'language\')\n +\n +# User wants only his documents\n +if args.get(\'mine\'): \n + sm = getSecurityManager()\n + u = sm.getUser()\n + args[\'owner\'] = u\n +\n +query_list = []\n +for k, v in args.items():\n + query_list.append(Query(**{k:v}))\n +\n +if args.get(\'newest\'):\n + return ComplexQuery(*query_list, **dict(operator = \'AND\',\n + order_by = \'reference\')) \n +\n +return ComplexQuery(*query_list, **dict(operator = \'AND\')) \n +\n +####################################\n +# NOT SUPPORTED YET VERY WELL\n +\n +#...and now we check for only the newest versions\n +# but we need to preserve order\n +if args.get(\'newest\'):\n + idx = {} # for keeping the last version of every reference\n + # this way we do reduce the number of docs very fast (without calling catalog)\n + newest = [] # for keeping order as it was\n + counter = 0\n + for r in res:\n + ref = r.getReference()\n + try:\n + ver = int(r.getVersion())\n + except ValueError:\n + continue\n + if idx.has_key(ref):\n + if idx[ref][0] >= ver:\n + continue\n + else:\n + del newest[idx[ref][1]]\n + counter -= 1\n + newest.append(r)\n + idx[ref] = (ver, counter)\n + counter += 1\n + # now that we have only one per reference, we can play with languages and revisions\n + res = [doc.getLatestVersionValue() for doc in newest]\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>sstr, **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>1</int> </value> + </item> + <item> + <key> <string>co_varnames</string> </key> + <value> + <tuple> + <string>sstr</string> + <string>kw</string> + <string>Products.ZSQLCatalog.SQLCatalog</string> + <string>Query</string> + <string>ComplexQuery</string> + <string>None</string> + <string>_getattr_</string> + <string>context</string> + <string>args</string> + <string>query_list</string> + <string>cats</string> + <string>bases</string> + <string>_getiter_</string> + <string>k</string> + <string>v</string> + <string>_write_</string> + <string>mode</string> + <string>modemap</string> + <string>dict</string> + <string>_getitem_</string> + <string>cf</string> + <string>ct</string> + <string>mf</string> + <string>mt</string> + <string>wheres</string> + <string>getSecurityManager</string> + <string>sm</string> + <string>u</string> + <string>_apply_</string> + <string>idx</string> + <string>newest</string> + <string>counter</string> + <string>res</string> + <string>r</string> + <string>ref</string> + <string>int</string> + <string>ver</string> + <string>ValueError</string> + <string>append</string> + <string>$append0</string> + <string>doc</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>SQLCatalog_makeAdvancedSearchQuery</string> </value> + </item> + <item> + <key> <string>warnings</string> </key> + <value> + <tuple/> + </value> + </item> + </dictionary> + </pickle> + </record> +</ZopeData> diff --git a/bt5/erp5_dms_mysql_innodb/CatalogMethodTemplateItem/portal_catalog/erp5_mysql_innodb/SQLCatalog_makeQuickSearchQuery.catalog_keys.xml b/bt5/erp5_dms_mysql_innodb/CatalogMethodTemplateItem/portal_catalog/erp5_mysql_innodb/SQLCatalog_makeQuickSearchQuery.catalog_keys.xml new file mode 100644 index 0000000000..7d6996cb9c --- /dev/null +++ b/bt5/erp5_dms_mysql_innodb/CatalogMethodTemplateItem/portal_catalog/erp5_mysql_innodb/SQLCatalog_makeQuickSearchQuery.catalog_keys.xml @@ -0,0 +1,2 @@ +<catalog_method> +</catalog_method> \ No newline at end of file diff --git a/bt5/erp5_dms_mysql_innodb/CatalogMethodTemplateItem/portal_catalog/erp5_mysql_innodb/SQLCatalog_makeQuickSearchQuery.xml b/bt5/erp5_dms_mysql_innodb/CatalogMethodTemplateItem/portal_catalog/erp5_mysql_innodb/SQLCatalog_makeQuickSearchQuery.xml new file mode 100644 index 0000000000..d912e736e3 --- /dev/null +++ b/bt5/erp5_dms_mysql_innodb/CatalogMethodTemplateItem/portal_catalog/erp5_mysql_innodb/SQLCatalog_makeQuickSearchQuery.xml @@ -0,0 +1,160 @@ +<?xml version="1.0"?> +<ZopeData> + <record id="1" aka="AAAAAAAAAAE="> + <pickle> + <tuple> + <tuple> + <string>Products.PythonScripts.PythonScript</string> + <string>PythonScript</string> + </tuple> + <none/> + </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>from Products.ZSQLCatalog.SQLCatalog import Query\n +from Products.ZSQLCatalog.SQLCatalog import ComplexQuery\n +\n +# Return \n +return ComplexQuery(Query(title=value),\n + Query(reference=value),\n + Query(short_tile=value),\n + Query(source_reference=value),\n + Query(destination_reference=value),\n + operator="OR")\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>_owner</string> </key> + <value> + <none/> + </value> + </item> + <item> + <key> <string>_params</string> </key> + <value> <string>value</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>1</int> </value> + </item> + <item> + <key> <string>co_varnames</string> </key> + <value> + <tuple> + <string>value</string> + <string>Products.ZSQLCatalog.SQLCatalog</string> + <string>Query</string> + <string>ComplexQuery</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>SQLCatalog_makeQuickSearchQuery</string> </value> + </item> + <item> + <key> <string>warnings</string> </key> + <value> + <tuple/> + </value> + </item> + </dictionary> + </pickle> + </record> +</ZopeData> diff --git a/bt5/erp5_dms_mysql_innodb/CatalogMethodTemplateItem/portal_catalog/erp5_mysql_innodb/z0_drop_email.catalog_keys.xml b/bt5/erp5_dms_mysql_innodb/CatalogMethodTemplateItem/portal_catalog/erp5_mysql_innodb/z0_drop_email.catalog_keys.xml new file mode 100644 index 0000000000..baf9e92bd9 --- /dev/null +++ b/bt5/erp5_dms_mysql_innodb/CatalogMethodTemplateItem/portal_catalog/erp5_mysql_innodb/z0_drop_email.catalog_keys.xml @@ -0,0 +1,5 @@ +<catalog_method> + <item key="sql_clear_catalog" type="int"> + <value>1</value> + </item> +</catalog_method> \ No newline at end of file diff --git a/bt5/erp5_dms_mysql_innodb/CatalogMethodTemplateItem/portal_catalog/erp5_mysql_innodb/z0_drop_email.xml b/bt5/erp5_dms_mysql_innodb/CatalogMethodTemplateItem/portal_catalog/erp5_mysql_innodb/z0_drop_email.xml new file mode 100644 index 0000000000..0a17c0d957 --- /dev/null +++ b/bt5/erp5_dms_mysql_innodb/CatalogMethodTemplateItem/portal_catalog/erp5_mysql_innodb/z0_drop_email.xml @@ -0,0 +1,116 @@ +<?xml version="1.0"?> +<ZopeData> + <record id="1" aka="AAAAAAAAAAE="> + <pickle> + <tuple> + <tuple> + <string>Products.ZSQLMethods.SQL</string> + <string>SQL</string> + </tuple> + <none/> + </tuple> + </pickle> + <pickle> + <dictionary> + <item> + <key> <string>__ac_local_roles__</string> </key> + <value> + <none/> + </value> + </item> + <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/> + </value> + </item> + <item> + <key> <string>_keys</string> </key> + <value> + <list/> + </value> + </item> + </dictionary> + </state> + </object> + </value> + </item> + <item> + <key> <string>_owner</string> </key> + <value> + <none/> + </value> + </item> + <item> + <key> <string>arguments_src</string> </key> + <value> <string></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>z0_drop_email</string> </value> + </item> + <item> + <key> <string>src</string> </key> + <value> <string>DROP TABLE email;</string> </value> + </item> + <item> + <key> <string>template</string> </key> + <value> + <object> + <klass> + <global name="SQL" module="Shared.DC.ZRDB.DA"/> + </klass> + <none/> + <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>DROP TABLE email;</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_dms_mysql_innodb/CatalogMethodTemplateItem/portal_catalog/erp5_mysql_innodb/z0_uncatalog_email.catalog_keys.xml b/bt5/erp5_dms_mysql_innodb/CatalogMethodTemplateItem/portal_catalog/erp5_mysql_innodb/z0_uncatalog_email.catalog_keys.xml new file mode 100644 index 0000000000..1bd3cc6a20 --- /dev/null +++ b/bt5/erp5_dms_mysql_innodb/CatalogMethodTemplateItem/portal_catalog/erp5_mysql_innodb/z0_uncatalog_email.catalog_keys.xml @@ -0,0 +1,16 @@ +<catalog_method> + <item key="sql_uncatalog_object" type="int"> + <value>1</value> + </item> + <item key="_is_filtered_archive" type="int"> + <value>1</value> + </item> + <item key="_filter_expression_archive" type="str"> + <value></value> + </item> + <item key="_filter_type_archive" type="tuple"> + <value>Email</value> + <value>Fax</value> + <value>Telephone</value> + </item> +</catalog_method> \ No newline at end of file diff --git a/bt5/erp5_dms_mysql_innodb/CatalogMethodTemplateItem/portal_catalog/erp5_mysql_innodb/z0_uncatalog_email.xml b/bt5/erp5_dms_mysql_innodb/CatalogMethodTemplateItem/portal_catalog/erp5_mysql_innodb/z0_uncatalog_email.xml new file mode 100644 index 0000000000..b8f0ffaf87 --- /dev/null +++ b/bt5/erp5_dms_mysql_innodb/CatalogMethodTemplateItem/portal_catalog/erp5_mysql_innodb/z0_uncatalog_email.xml @@ -0,0 +1,133 @@ +<?xml version="1.0"?> +<ZopeData> + <record id="1" aka="AAAAAAAAAAE="> + <pickle> + <tuple> + <tuple> + <string>Products.ZSQLMethods.SQL</string> + <string>SQL</string> + </tuple> + <none/> + </tuple> + </pickle> + <pickle> + <dictionary> + <item> + <key> <string>__ac_local_roles__</string> </key> + <value> + <none/> + </value> + </item> + <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>uid</string> </key> + <value> + <dictionary/> + </value> + </item> + </dictionary> + </value> + </item> + <item> + <key> <string>_keys</string> </key> + <value> + <list> + <string>uid</string> + </list> + </value> + </item> + </dictionary> + </state> + </object> + </value> + </item> + <item> + <key> <string>_owner</string> </key> + <value> + <none/> + </value> + </item> + <item> + <key> <string>arguments_src</string> </key> + <value> <string>uid</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>z0_uncatalog_email</string> </value> + </item> + <item> + <key> <string>src</string> </key> + <value> <string encoding="cdata"><![CDATA[ + +DELETE FROM email WHERE <dtml-sqltest uid op=eq type=int> + +]]></string> </value> + </item> + <item> + <key> <string>template</string> </key> + <value> + <object> + <klass> + <global name="SQL" module="Shared.DC.ZRDB.DA"/> + </klass> + <none/> + <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[ + +DELETE FROM email WHERE <dtml-sqltest uid op=eq type=int> + +]]></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_dms_mysql_innodb/CatalogMethodTemplateItem/portal_catalog/erp5_mysql_innodb/z0_uncatalog_versioning.catalog_keys.xml b/bt5/erp5_dms_mysql_innodb/CatalogMethodTemplateItem/portal_catalog/erp5_mysql_innodb/z0_uncatalog_versioning.catalog_keys.xml new file mode 100644 index 0000000000..d58ef064ea --- /dev/null +++ b/bt5/erp5_dms_mysql_innodb/CatalogMethodTemplateItem/portal_catalog/erp5_mysql_innodb/z0_uncatalog_versioning.catalog_keys.xml @@ -0,0 +1,5 @@ +<catalog_method> + <item key="sql_uncatalog_object" type="int"> + <value>1</value> + </item> +</catalog_method> \ No newline at end of file diff --git a/bt5/erp5_dms_mysql_innodb/CatalogMethodTemplateItem/portal_catalog/erp5_mysql_innodb/z0_uncatalog_versioning.xml b/bt5/erp5_dms_mysql_innodb/CatalogMethodTemplateItem/portal_catalog/erp5_mysql_innodb/z0_uncatalog_versioning.xml new file mode 100644 index 0000000000..4b91bb730c --- /dev/null +++ b/bt5/erp5_dms_mysql_innodb/CatalogMethodTemplateItem/portal_catalog/erp5_mysql_innodb/z0_uncatalog_versioning.xml @@ -0,0 +1,165 @@ +<?xml version="1.0"?> +<ZopeData> + <record id="1" aka="AAAAAAAAAAE="> + <pickle> + <tuple> + <tuple> + <string>Products.ZSQLMethods.SQL</string> + <string>SQL</string> + </tuple> + <none/> + </tuple> + </pickle> + <pickle> + <dictionary> + <item> + <key> <string>__ac_local_roles__</string> </key> + <value> + <none/> + </value> + </item> + <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>uid</string> </key> + <value> + <dictionary/> + </value> + </item> + </dictionary> + </value> + </item> + <item> + <key> <string>_keys</string> </key> + <value> + <list> +<string>uid</string> + </list> + </value> + </item> + </dictionary> + </state> + </object> + </value> + </item> + <item> + <key> <string>_owner</string> </key> + <value> + <none/> + </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>uid</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>z0_uncatalog_versioning</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[ + +DELETE FROM versioning WHERE <dtml-sqltest uid op=eq type=int> + +]]></string> </value> + </item> + <item> + <key> <string>template</string> </key> + <value> + <object> + <klass> + <global name="SQL" module="Shared.DC.ZRDB.DA"/> + </klass> + <none/> + <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[ + +DELETE FROM versioning WHERE <dtml-sqltest uid op=eq type=int> + +]]></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_dms_mysql_innodb/CatalogMethodTemplateItem/portal_catalog/erp5_mysql_innodb/z_catalog_email_list.catalog_keys.xml b/bt5/erp5_dms_mysql_innodb/CatalogMethodTemplateItem/portal_catalog/erp5_mysql_innodb/z_catalog_email_list.catalog_keys.xml new file mode 100644 index 0000000000..809876bf47 --- /dev/null +++ b/bt5/erp5_dms_mysql_innodb/CatalogMethodTemplateItem/portal_catalog/erp5_mysql_innodb/z_catalog_email_list.catalog_keys.xml @@ -0,0 +1,16 @@ +<catalog_method> + <item key="sql_catalog_object_list" type="int"> + <value>1</value> + </item> + <item key="_is_filtered_archive" type="int"> + <value>1</value> + </item> + <item key="_filter_expression_archive" type="str"> + <value></value> + </item> + <item key="_filter_type_archive" type="tuple"> + <value>Email</value> + <value>Fax</value> + <value>Telephone</value> + </item> +</catalog_method> \ No newline at end of file diff --git a/bt5/erp5_dms_mysql_innodb/CatalogMethodTemplateItem/portal_catalog/erp5_mysql_innodb/z_catalog_email_list.xml b/bt5/erp5_dms_mysql_innodb/CatalogMethodTemplateItem/portal_catalog/erp5_mysql_innodb/z_catalog_email_list.xml new file mode 100644 index 0000000000..b212af272a --- /dev/null +++ b/bt5/erp5_dms_mysql_innodb/CatalogMethodTemplateItem/portal_catalog/erp5_mysql_innodb/z_catalog_email_list.xml @@ -0,0 +1,185 @@ +<?xml version="1.0"?> +<ZopeData> + <record id="1" aka="AAAAAAAAAAE="> + <pickle> + <tuple> + <tuple> + <string>Products.ZSQLMethods.SQL</string> + <string>SQL</string> + </tuple> + <none/> + </tuple> + </pickle> + <pickle> + <dictionary> + <item> + <key> <string>__ac_local_roles__</string> </key> + <value> + <none/> + </value> + </item> + <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>getPortalType</string> </key> + <value> + <dictionary/> + </value> + </item> + <item> + <key> <string>getUrlString</string> </key> + <value> + <dictionary/> + </value> + </item> + <item> + <key> <string>uid</string> </key> + <value> + <dictionary/> + </value> + </item> + </dictionary> + </value> + </item> + <item> + <key> <string>_keys</string> </key> + <value> + <list> + <string>uid</string> + <string>getUrlString</string> + <string>getPortalType</string> + </list> + </value> + </item> + </dictionary> + </state> + </object> + </value> + </item> + <item> + <key> <string>_owner</string> </key> + <value> + <none/> + </value> + </item> + <item> + <key> <string>arguments_src</string> </key> + <value> <string>uid\r\n +getUrlString\r\n +getPortalType</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_catalog_email_list</string> </value> + </item> + <item> + <key> <string>src</string> </key> + <value> <string encoding="cdata"><![CDATA[ + +<dtml-let email_list="[]">\n + <dtml-in prefix="loop" expr="_.range(_.len(uid))">\n + <dtml-if expr="getPortalType[loop_item]==\'Email\'">\n + <dtml-call expr="email_list.append(loop_item)">\n + </dtml-if>\n + </dtml-in>\n + <dtml-if expr="_.len(email_list) > 0">\n + REPLACE INTO\n + email\n + VALUES\n + <dtml-in prefix="loop" expr="email_list">\n + (\n + <dtml-sqlvar expr="uid[loop_item]" type="int">, \n + <dtml-sqlvar expr="getUrlString[loop_item]" type="string" optional>\n + )\n + <dtml-if sequence-end><dtml-else>,</dtml-if>\n + </dtml-in>\n + </dtml-if>\n +</dtml-let> + +]]></string> </value> + </item> + <item> + <key> <string>template</string> </key> + <value> + <object> + <klass> + <global name="SQL" module="Shared.DC.ZRDB.DA"/> + </klass> + <none/> + <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-let email_list="[]">\n + <dtml-in prefix="loop" expr="_.range(_.len(uid))">\n + <dtml-if expr="getPortalType[loop_item]==\'Email\'">\n + <dtml-call expr="email_list.append(loop_item)">\n + </dtml-if>\n + </dtml-in>\n + <dtml-if expr="_.len(email_list) > 0">\n + REPLACE INTO\n + email\n + VALUES\n + <dtml-in prefix="loop" expr="email_list">\n + (\n + <dtml-sqlvar expr="uid[loop_item]" type="int">, \n + <dtml-sqlvar expr="getUrlString[loop_item]" type="string" optional>\n + )\n + <dtml-if sequence-end><dtml-else>,</dtml-if>\n + </dtml-in>\n + </dtml-if>\n +</dtml-let> + +]]></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_dms_mysql_innodb/CatalogMethodTemplateItem/portal_catalog/erp5_mysql_innodb/z_catalog_versioning_list.catalog_keys.xml b/bt5/erp5_dms_mysql_innodb/CatalogMethodTemplateItem/portal_catalog/erp5_mysql_innodb/z_catalog_versioning_list.catalog_keys.xml new file mode 100644 index 0000000000..93bd4a9bdf --- /dev/null +++ b/bt5/erp5_dms_mysql_innodb/CatalogMethodTemplateItem/portal_catalog/erp5_mysql_innodb/z_catalog_versioning_list.catalog_keys.xml @@ -0,0 +1,5 @@ +<catalog_method> + <item key="sql_catalog_object_list" type="int"> + <value>1</value> + </item> +</catalog_method> \ No newline at end of file diff --git a/bt5/erp5_dms_mysql_innodb/CatalogMethodTemplateItem/portal_catalog/erp5_mysql_innodb/z_catalog_versioning_list.xml b/bt5/erp5_dms_mysql_innodb/CatalogMethodTemplateItem/portal_catalog/erp5_mysql_innodb/z_catalog_versioning_list.xml new file mode 100644 index 0000000000..9d3a2f17e2 --- /dev/null +++ b/bt5/erp5_dms_mysql_innodb/CatalogMethodTemplateItem/portal_catalog/erp5_mysql_innodb/z_catalog_versioning_list.xml @@ -0,0 +1,219 @@ +<?xml version="1.0"?> +<ZopeData> + <record id="1" aka="AAAAAAAAAAE="> + <pickle> + <tuple> + <tuple> + <string>Products.ZSQLMethods.SQL</string> + <string>SQL</string> + </tuple> + <none/> + </tuple> + </pickle> + <pickle> + <dictionary> + <item> + <key> <string>__ac_local_roles__</string> </key> + <value> + <none/> + </value> + </item> + <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>getLanguage</string> </key> + <value> + <dictionary/> + </value> + </item> + <item> + <key> <string>getRevision</string> </key> + <value> + <dictionary/> + </value> + </item> + <item> + <key> <string>getVersion</string> </key> + <value> + <dictionary/> + </value> + </item> + <item> + <key> <string>uid</string> </key> + <value> + <dictionary/> + </value> + </item> + </dictionary> + </value> + </item> + <item> + <key> <string>_keys</string> </key> + <value> + <list> +<string>uid</string> +<string>getLanguage</string> +<string>getVersion</string> +<string>getRevision</string> + </list> + </value> + </item> + </dictionary> + </state> + </object> + </value> + </item> + <item> + <key> <string>_owner</string> </key> + <value> + <none/> + </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>uid\r\n +getLanguage\r\n +getVersion\r\n +getRevision</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_catalog_versioning_list</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[ + +REPLACE INTO\n + versioning\n +VALUES\n +<dtml-in prefix="loop" expr="_.range(_.len(uid))">\n +(\n + <dtml-sqlvar expr="uid[loop_item]" type="int">, \n + <dtml-sqlvar expr="getVersion[loop_item]" type="string" optional>,\n + <dtml-sqlvar expr="getLanguage[loop_item]" type="string" optional>,\n + <dtml-sqlvar expr="getRevision[loop_item]" type="string" optional>\n +)\n +<dtml-if sequence-end>\n +<dtml-else>\n +,\n +</dtml-if>\n +</dtml-in>\n + + +]]></string> </value> + </item> + <item> + <key> <string>template</string> </key> + <value> + <object> + <klass> + <global name="SQL" module="Shared.DC.ZRDB.DA"/> + </klass> + <none/> + <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[ + +REPLACE INTO\n + versioning\n +VALUES\n +<dtml-in prefix="loop" expr="_.range(_.len(uid))">\n +(\n + <dtml-sqlvar expr="uid[loop_item]" type="int">, \n + <dtml-sqlvar expr="getVersion[loop_item]" type="string" optional>,\n + <dtml-sqlvar expr="getLanguage[loop_item]" type="string" optional>,\n + <dtml-sqlvar expr="getRevision[loop_item]" type="string" optional>\n +)\n +<dtml-if sequence-end>\n +<dtml-else>\n +,\n +</dtml-if>\n +</dtml-in>\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_dms_mysql_innodb/CatalogMethodTemplateItem/portal_catalog/erp5_mysql_innodb/z_create_email.catalog_keys.xml b/bt5/erp5_dms_mysql_innodb/CatalogMethodTemplateItem/portal_catalog/erp5_mysql_innodb/z_create_email.catalog_keys.xml new file mode 100644 index 0000000000..7d6996cb9c --- /dev/null +++ b/bt5/erp5_dms_mysql_innodb/CatalogMethodTemplateItem/portal_catalog/erp5_mysql_innodb/z_create_email.catalog_keys.xml @@ -0,0 +1,2 @@ +<catalog_method> +</catalog_method> \ No newline at end of file diff --git a/bt5/erp5_dms_mysql_innodb/CatalogMethodTemplateItem/portal_catalog/erp5_mysql_innodb/z_create_email.xml b/bt5/erp5_dms_mysql_innodb/CatalogMethodTemplateItem/portal_catalog/erp5_mysql_innodb/z_create_email.xml new file mode 100644 index 0000000000..e744a6d20f --- /dev/null +++ b/bt5/erp5_dms_mysql_innodb/CatalogMethodTemplateItem/portal_catalog/erp5_mysql_innodb/z_create_email.xml @@ -0,0 +1,132 @@ +<?xml version="1.0"?> +<ZopeData> + <record id="1" aka="AAAAAAAAAAE="> + <pickle> + <tuple> + <tuple> + <string>Products.ZSQLMethods.SQL</string> + <string>SQL</string> + </tuple> + <none/> + </tuple> + </pickle> + <pickle> + <dictionary> + <item> + <key> <string>__ac_local_roles__</string> </key> + <value> + <none/> + </value> + </item> + <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/> + </value> + </item> + <item> + <key> <string>_keys</string> </key> + <value> + <list/> + </value> + </item> + </dictionary> + </state> + </object> + </value> + </item> + <item> + <key> <string>_col</string> </key> + <value> + <tuple/> + </value> + </item> + <item> + <key> <string>_owner</string> </key> + <value> + <none/> + </value> + </item> + <item> + <key> <string>arguments_src</string> </key> + <value> <string></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_create_email</string> </value> + </item> + <item> + <key> <string>src</string> </key> + <value> <string>CREATE TABLE `email` (\n + `uid` BIGINT UNSIGNED NOT NULL,\n + `url_string` varchar(255),\n + PRIMARY KEY `uid` (`uid`),\n + KEY `url_string` (`url_string`)\n +) TYPE = InnoDB;</string> </value> + </item> + <item> + <key> <string>template</string> </key> + <value> + <object> + <klass> + <global name="SQL" module="Shared.DC.ZRDB.DA"/> + </klass> + <none/> + <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>CREATE TABLE `email` (\n + `uid` BIGINT UNSIGNED NOT NULL,\n + `url_string` varchar(255),\n + PRIMARY KEY `uid` (`uid`),\n + KEY `url_string` (`url_string`)\n +) TYPE = InnoDB;</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_dms_mysql_innodb/CatalogMethodTemplateItem/portal_catalog/erp5_mysql_innodb/z_create_versioning.catalog_keys.xml b/bt5/erp5_dms_mysql_innodb/CatalogMethodTemplateItem/portal_catalog/erp5_mysql_innodb/z_create_versioning.catalog_keys.xml new file mode 100644 index 0000000000..baf9e92bd9 --- /dev/null +++ b/bt5/erp5_dms_mysql_innodb/CatalogMethodTemplateItem/portal_catalog/erp5_mysql_innodb/z_create_versioning.catalog_keys.xml @@ -0,0 +1,5 @@ +<catalog_method> + <item key="sql_clear_catalog" type="int"> + <value>1</value> + </item> +</catalog_method> \ No newline at end of file diff --git a/bt5/erp5_dms_mysql_innodb/CatalogMethodTemplateItem/portal_catalog/erp5_mysql_innodb/z_create_versioning.xml b/bt5/erp5_dms_mysql_innodb/CatalogMethodTemplateItem/portal_catalog/erp5_mysql_innodb/z_create_versioning.xml new file mode 100644 index 0000000000..6f6470b448 --- /dev/null +++ b/bt5/erp5_dms_mysql_innodb/CatalogMethodTemplateItem/portal_catalog/erp5_mysql_innodb/z_create_versioning.xml @@ -0,0 +1,140 @@ +<?xml version="1.0"?> +<ZopeData> + <record id="1" aka="AAAAAAAAAAE="> + <pickle> + <tuple> + <tuple> + <string>Products.ZSQLMethods.SQL</string> + <string>SQL</string> + </tuple> + <none/> + </tuple> + </pickle> + <pickle> + <dictionary> + <item> + <key> <string>__ac_local_roles__</string> </key> + <value> + <none/> + </value> + </item> + <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/> + </value> + </item> + <item> + <key> <string>_keys</string> </key> + <value> + <list/> + </value> + </item> + </dictionary> + </state> + </object> + </value> + </item> + <item> + <key> <string>_col</string> </key> + <value> + <tuple/> + </value> + </item> + <item> + <key> <string>_owner</string> </key> + <value> + <none/> + </value> + </item> + <item> + <key> <string>arguments_src</string> </key> + <value> <string></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_create_versioning</string> </value> + </item> + <item> + <key> <string>src</string> </key> + <value> <string>CREATE TABLE `versioning` (\n + `uid` BIGINT UNSIGNED NOT NULL,\n + `version` varchar(10) default \'\',\n + `language` varchar(2) default \'\',\n + `revision` varchar(10) default \'\',\n + PRIMARY KEY (`uid`),\n + KEY `version` (`version`),\n + KEY `language` (`language`)\n +) TYPE=InnoDB;\n +</string> </value> + </item> + <item> + <key> <string>template</string> </key> + <value> + <object> + <klass> + <global name="SQL" module="Shared.DC.ZRDB.DA"/> + </klass> + <none/> + <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>CREATE TABLE `versioning` (\n + `uid` BIGINT UNSIGNED NOT NULL,\n + `version` varchar(10) default \'\',\n + `language` varchar(2) default \'\',\n + `revision` varchar(10) default \'\',\n + PRIMARY KEY (`uid`),\n + KEY `version` (`version`),\n + KEY `language` (`language`)\n +) TYPE=InnoDB;\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_dms_mysql_innodb/CatalogResultTableTemplateItem/result_table_list.xml b/bt5/erp5_dms_mysql_innodb/CatalogResultTableTemplateItem/result_table_list.xml new file mode 100644 index 0000000000..4e9518bcc1 --- /dev/null +++ b/bt5/erp5_dms_mysql_innodb/CatalogResultTableTemplateItem/result_table_list.xml @@ -0,0 +1,4 @@ +<key_list> + <key>email</key> + <key>versioning</key> +</key_list> \ No newline at end of file diff --git a/bt5/erp5_dms_mysql_innodb/bt/categories_list b/bt5/erp5_dms_mysql_innodb/bt/categories_list new file mode 100644 index 0000000000..e69de29bb2 diff --git a/bt5/erp5_dms_mysql_innodb/bt/change_log b/bt5/erp5_dms_mysql_innodb/bt/change_log new file mode 100644 index 0000000000..2ce8df11db --- /dev/null +++ b/bt5/erp5_dms_mysql_innodb/bt/change_log @@ -0,0 +1 @@ +2007-03-12 Initial version \ No newline at end of file diff --git a/bt5/erp5_dms_mysql_innodb/bt/copyright_list b/bt5/erp5_dms_mysql_innodb/bt/copyright_list new file mode 100644 index 0000000000..8dfa82e635 --- /dev/null +++ b/bt5/erp5_dms_mysql_innodb/bt/copyright_list @@ -0,0 +1 @@ +Nexedi \ No newline at end of file diff --git a/bt5/erp5_dms_mysql_innodb/bt/dependency_list b/bt5/erp5_dms_mysql_innodb/bt/dependency_list new file mode 100644 index 0000000000..9452139227 --- /dev/null +++ b/bt5/erp5_dms_mysql_innodb/bt/dependency_list @@ -0,0 +1 @@ +erp5_dms \ No newline at end of file diff --git a/bt5/erp5_dms_mysql_innodb/bt/description b/bt5/erp5_dms_mysql_innodb/bt/description new file mode 100644 index 0000000000..54fb2b9472 --- /dev/null +++ b/bt5/erp5_dms_mysql_innodb/bt/description @@ -0,0 +1 @@ +MySQL tables for ERP5 DMS \ No newline at end of file diff --git a/bt5/erp5_dms_mysql_innodb/bt/license b/bt5/erp5_dms_mysql_innodb/bt/license new file mode 100644 index 0000000000..3a3e12bcad --- /dev/null +++ b/bt5/erp5_dms_mysql_innodb/bt/license @@ -0,0 +1 @@ +GPL \ No newline at end of file diff --git a/bt5/erp5_dms_mysql_innodb/bt/maintainer_list b/bt5/erp5_dms_mysql_innodb/bt/maintainer_list new file mode 100644 index 0000000000..0202396edc --- /dev/null +++ b/bt5/erp5_dms_mysql_innodb/bt/maintainer_list @@ -0,0 +1,2 @@ +jp +bartek \ No newline at end of file diff --git a/bt5/erp5_dms_mysql_innodb/bt/provision_list b/bt5/erp5_dms_mysql_innodb/bt/provision_list new file mode 100644 index 0000000000..e69de29bb2 diff --git a/bt5/erp5_dms_mysql_innodb/bt/publication_url b/bt5/erp5_dms_mysql_innodb/bt/publication_url new file mode 100644 index 0000000000..4af18322e3 --- /dev/null +++ b/bt5/erp5_dms_mysql_innodb/bt/publication_url @@ -0,0 +1 @@ +None \ No newline at end of file diff --git a/bt5/erp5_dms_mysql_innodb/bt/revision b/bt5/erp5_dms_mysql_innodb/bt/revision new file mode 100644 index 0000000000..245d3cfbf3 --- /dev/null +++ b/bt5/erp5_dms_mysql_innodb/bt/revision @@ -0,0 +1 @@ +561 \ No newline at end of file diff --git a/bt5/erp5_dms_mysql_innodb/bt/short_title b/bt5/erp5_dms_mysql_innodb/bt/short_title new file mode 100644 index 0000000000..4af18322e3 --- /dev/null +++ b/bt5/erp5_dms_mysql_innodb/bt/short_title @@ -0,0 +1 @@ +None \ No newline at end of file diff --git a/bt5/erp5_dms_mysql_innodb/bt/template_action_path_list b/bt5/erp5_dms_mysql_innodb/bt/template_action_path_list new file mode 100644 index 0000000000..e69de29bb2 diff --git a/bt5/erp5_dms_mysql_innodb/bt/template_base_category_list b/bt5/erp5_dms_mysql_innodb/bt/template_base_category_list new file mode 100644 index 0000000000..e69de29bb2 diff --git a/bt5/erp5_dms_mysql_innodb/bt/template_catalog_full_text_key_list b/bt5/erp5_dms_mysql_innodb/bt/template_catalog_full_text_key_list new file mode 100644 index 0000000000..e69de29bb2 diff --git a/bt5/erp5_dms_mysql_innodb/bt/template_catalog_keyword_key_list b/bt5/erp5_dms_mysql_innodb/bt/template_catalog_keyword_key_list new file mode 100644 index 0000000000..e69de29bb2 diff --git a/bt5/erp5_dms_mysql_innodb/bt/template_catalog_method_id_list b/bt5/erp5_dms_mysql_innodb/bt/template_catalog_method_id_list new file mode 100644 index 0000000000..abb60eb250 --- /dev/null +++ b/bt5/erp5_dms_mysql_innodb/bt/template_catalog_method_id_list @@ -0,0 +1,9 @@ +erp5_mysql_innodb/SQLCatalog_makeAdvancedSearchQuery +erp5_mysql_innodb/SQLCatalog_makeQuickSearchQuery +erp5_mysql_innodb/z0_drop_email +erp5_mysql_innodb/z0_uncatalog_email +erp5_mysql_innodb/z0_uncatalog_versioning +erp5_mysql_innodb/z_catalog_email_list +erp5_mysql_innodb/z_catalog_versioning_list +erp5_mysql_innodb/z_create_email +erp5_mysql_innodb/z_create_versioning \ No newline at end of file diff --git a/bt5/erp5_dms_mysql_innodb/bt/template_catalog_multivalue_key_list b/bt5/erp5_dms_mysql_innodb/bt/template_catalog_multivalue_key_list new file mode 100644 index 0000000000..e69de29bb2 diff --git a/bt5/erp5_dms_mysql_innodb/bt/template_catalog_related_key_list b/bt5/erp5_dms_mysql_innodb/bt/template_catalog_related_key_list new file mode 100644 index 0000000000..e69de29bb2 diff --git a/bt5/erp5_dms_mysql_innodb/bt/template_catalog_request_key_list b/bt5/erp5_dms_mysql_innodb/bt/template_catalog_request_key_list new file mode 100644 index 0000000000..e69de29bb2 diff --git a/bt5/erp5_dms_mysql_innodb/bt/template_catalog_result_key_list b/bt5/erp5_dms_mysql_innodb/bt/template_catalog_result_key_list new file mode 100644 index 0000000000..e69de29bb2 diff --git a/bt5/erp5_dms_mysql_innodb/bt/template_catalog_result_table_list b/bt5/erp5_dms_mysql_innodb/bt/template_catalog_result_table_list new file mode 100644 index 0000000000..5c5eb4c6c3 --- /dev/null +++ b/bt5/erp5_dms_mysql_innodb/bt/template_catalog_result_table_list @@ -0,0 +1,2 @@ +versioning +email \ No newline at end of file diff --git a/bt5/erp5_dms_mysql_innodb/bt/template_catalog_topic_key_list b/bt5/erp5_dms_mysql_innodb/bt/template_catalog_topic_key_list new file mode 100644 index 0000000000..e69de29bb2 diff --git a/bt5/erp5_dms_mysql_innodb/bt/template_constraint_id_list b/bt5/erp5_dms_mysql_innodb/bt/template_constraint_id_list new file mode 100644 index 0000000000..e69de29bb2 diff --git a/bt5/erp5_dms_mysql_innodb/bt/template_document_id_list b/bt5/erp5_dms_mysql_innodb/bt/template_document_id_list new file mode 100644 index 0000000000..e69de29bb2 diff --git a/bt5/erp5_dms_mysql_innodb/bt/template_extension_id_list b/bt5/erp5_dms_mysql_innodb/bt/template_extension_id_list new file mode 100644 index 0000000000..e69de29bb2 diff --git a/bt5/erp5_dms_mysql_innodb/bt/template_format_version b/bt5/erp5_dms_mysql_innodb/bt/template_format_version new file mode 100644 index 0000000000..56a6051ca2 --- /dev/null +++ b/bt5/erp5_dms_mysql_innodb/bt/template_format_version @@ -0,0 +1 @@ +1 \ No newline at end of file diff --git a/bt5/erp5_dms_mysql_innodb/bt/template_local_roles_list b/bt5/erp5_dms_mysql_innodb/bt/template_local_roles_list new file mode 100644 index 0000000000..e69de29bb2 diff --git a/bt5/erp5_dms_mysql_innodb/bt/template_message_translation_list b/bt5/erp5_dms_mysql_innodb/bt/template_message_translation_list new file mode 100644 index 0000000000..e69de29bb2 diff --git a/bt5/erp5_dms_mysql_innodb/bt/template_module_id_list b/bt5/erp5_dms_mysql_innodb/bt/template_module_id_list new file mode 100644 index 0000000000..e69de29bb2 diff --git a/bt5/erp5_dms_mysql_innodb/bt/template_path_list b/bt5/erp5_dms_mysql_innodb/bt/template_path_list new file mode 100644 index 0000000000..e69de29bb2 diff --git a/bt5/erp5_dms_mysql_innodb/bt/template_portal_type_allowed_content_type_list b/bt5/erp5_dms_mysql_innodb/bt/template_portal_type_allowed_content_type_list new file mode 100644 index 0000000000..e69de29bb2 diff --git a/bt5/erp5_dms_mysql_innodb/bt/template_portal_type_base_category_list b/bt5/erp5_dms_mysql_innodb/bt/template_portal_type_base_category_list new file mode 100644 index 0000000000..e69de29bb2 diff --git a/bt5/erp5_dms_mysql_innodb/bt/template_portal_type_hidden_content_type_list b/bt5/erp5_dms_mysql_innodb/bt/template_portal_type_hidden_content_type_list new file mode 100644 index 0000000000..e69de29bb2 diff --git a/bt5/erp5_dms_mysql_innodb/bt/template_portal_type_id_list b/bt5/erp5_dms_mysql_innodb/bt/template_portal_type_id_list new file mode 100644 index 0000000000..e69de29bb2 diff --git a/bt5/erp5_dms_mysql_innodb/bt/template_portal_type_property_sheet_list b/bt5/erp5_dms_mysql_innodb/bt/template_portal_type_property_sheet_list new file mode 100644 index 0000000000..e69de29bb2 diff --git a/bt5/erp5_dms_mysql_innodb/bt/template_portal_type_roles_list b/bt5/erp5_dms_mysql_innodb/bt/template_portal_type_roles_list new file mode 100644 index 0000000000..e69de29bb2 diff --git a/bt5/erp5_dms_mysql_innodb/bt/template_portal_type_workflow_chain_list b/bt5/erp5_dms_mysql_innodb/bt/template_portal_type_workflow_chain_list new file mode 100644 index 0000000000..e69de29bb2 diff --git a/bt5/erp5_dms_mysql_innodb/bt/template_preference_list b/bt5/erp5_dms_mysql_innodb/bt/template_preference_list new file mode 100644 index 0000000000..e69de29bb2 diff --git a/bt5/erp5_dms_mysql_innodb/bt/template_product_id_list b/bt5/erp5_dms_mysql_innodb/bt/template_product_id_list new file mode 100644 index 0000000000..e69de29bb2 diff --git a/bt5/erp5_dms_mysql_innodb/bt/template_property_sheet_id_list b/bt5/erp5_dms_mysql_innodb/bt/template_property_sheet_id_list new file mode 100644 index 0000000000..e69de29bb2 diff --git a/bt5/erp5_dms_mysql_innodb/bt/template_role_list b/bt5/erp5_dms_mysql_innodb/bt/template_role_list new file mode 100644 index 0000000000..e69de29bb2 diff --git a/bt5/erp5_dms_mysql_innodb/bt/template_site_property_id_list b/bt5/erp5_dms_mysql_innodb/bt/template_site_property_id_list new file mode 100644 index 0000000000..e69de29bb2 diff --git a/bt5/erp5_dms_mysql_innodb/bt/template_skin_id_list b/bt5/erp5_dms_mysql_innodb/bt/template_skin_id_list new file mode 100644 index 0000000000..e69de29bb2 diff --git a/bt5/erp5_dms_mysql_innodb/bt/template_test_id_list b/bt5/erp5_dms_mysql_innodb/bt/template_test_id_list new file mode 100644 index 0000000000..e69de29bb2 diff --git a/bt5/erp5_dms_mysql_innodb/bt/template_update_business_template_workflow b/bt5/erp5_dms_mysql_innodb/bt/template_update_business_template_workflow new file mode 100644 index 0000000000..c227083464 --- /dev/null +++ b/bt5/erp5_dms_mysql_innodb/bt/template_update_business_template_workflow @@ -0,0 +1 @@ +0 \ No newline at end of file diff --git a/bt5/erp5_dms_mysql_innodb/bt/template_update_tool b/bt5/erp5_dms_mysql_innodb/bt/template_update_tool new file mode 100644 index 0000000000..c227083464 --- /dev/null +++ b/bt5/erp5_dms_mysql_innodb/bt/template_update_tool @@ -0,0 +1 @@ +0 \ No newline at end of file diff --git a/bt5/erp5_dms_mysql_innodb/bt/template_workflow_id_list b/bt5/erp5_dms_mysql_innodb/bt/template_workflow_id_list new file mode 100644 index 0000000000..e69de29bb2 diff --git a/bt5/erp5_dms_mysql_innodb/bt/title b/bt5/erp5_dms_mysql_innodb/bt/title new file mode 100644 index 0000000000..fe926af136 --- /dev/null +++ b/bt5/erp5_dms_mysql_innodb/bt/title @@ -0,0 +1 @@ +erp5_dms_mysql_innodb \ No newline at end of file diff --git a/bt5/erp5_dms_mysql_innodb/bt/version b/bt5/erp5_dms_mysql_innodb/bt/version new file mode 100644 index 0000000000..9a7d84f2a9 --- /dev/null +++ b/bt5/erp5_dms_mysql_innodb/bt/version @@ -0,0 +1 @@ +0.9 \ No newline at end of file -- 2.30.9