diff --git a/bt5/erp5_banking_core/CatalogMethodTemplateItem/portal_catalog/erp5_mysql/z_catalog_item_list.xml b/bt5/erp5_banking_core/CatalogMethodTemplateItem/portal_catalog/erp5_mysql/z_catalog_item_list.xml index 16b9822f86759c6bcbd160daee9f656bf61a2ebb..9b4190bf9d70ef8bbc355a9432764ed2e70c5107 100644 --- a/bt5/erp5_banking_core/CatalogMethodTemplateItem/portal_catalog/erp5_mysql/z_catalog_item_list.xml +++ b/bt5/erp5_banking_core/CatalogMethodTemplateItem/portal_catalog/erp5_mysql/z_catalog_item_list.xml @@ -56,6 +56,12 @@ <dictionary/> </value> </item> + <item> + <key> <string>getSimulationState</string> </key> + <value> + <dictionary/> + </value> + </item> <item> <key> <string>getStopDate</string> </key> <value> @@ -94,6 +100,7 @@ <string>getDestinationSectionUid</string> <string>getResourceUid</string> <string>getVariationText</string> +<string>getSimulationState</string> <string>getAggregateUidList</string> </list> </value> @@ -118,6 +125,7 @@ getDestinationUid\r\n getDestinationSectionUid\r\n getResourceUid\r\n getVariationText\r\n +getSimulationState\r\n getAggregateUidList</string> </value> </item> <item> @@ -187,7 +195,8 @@ VALUES\n <dtml-sqlvar expr="getDestinationSectionUid[loop_item]" type="int" optional>,\n <dtml-sqlvar expr="getResourceUid[loop_item]" type="int" optional>,\n <dtml-sqlvar sequence-item type="int" optional>,\n - <dtml-sqlvar expr="getVariationText[loop_item]" type="string" optional>\n + <dtml-sqlvar expr="getVariationText[loop_item]" type="string" optional>,\n + <dtml-sqlvar expr="getSimulationState[loop_item]" type="string" optional>\n )\n <dtml-if sequence-end><dtml-else>,</dtml-if>\n </dtml-in>\n @@ -263,7 +272,8 @@ VALUES\n <dtml-sqlvar expr="getDestinationSectionUid[loop_item]" type="int" optional>,\n <dtml-sqlvar expr="getResourceUid[loop_item]" type="int" optional>,\n <dtml-sqlvar sequence-item type="int" optional>,\n - <dtml-sqlvar expr="getVariationText[loop_item]" type="string" optional>\n + <dtml-sqlvar expr="getVariationText[loop_item]" type="string" optional>,\n + <dtml-sqlvar expr="getSimulationState[loop_item]" type="string" optional>\n )\n <dtml-if sequence-end><dtml-else>,</dtml-if>\n </dtml-in>\n diff --git a/bt5/erp5_banking_core/CatalogMethodTemplateItem/portal_catalog/erp5_mysql/z_create_item.catalog_keys.xml b/bt5/erp5_banking_core/CatalogMethodTemplateItem/portal_catalog/erp5_mysql/z_create_item.catalog_keys.xml new file mode 100644 index 0000000000000000000000000000000000000000..4556ae614d8a8ff41da72c31b5ce55850d137790 --- /dev/null +++ b/bt5/erp5_banking_core/CatalogMethodTemplateItem/portal_catalog/erp5_mysql/z_create_item.catalog_keys.xml @@ -0,0 +1,14 @@ +<catalog_method> + <item key="_is_catalog_list_method_archive" type="int"> + <value>0</value> + </item> + <item key="_is_uncatalog_method_archive" type="int"> + <value>0</value> + </item> + <item key="_is_clear_method_archive" type="int"> + <value>1</value> + </item> + <item key="_is_filtered_archive" type="int"> + <value>0</value> + </item> +</catalog_method> \ No newline at end of file diff --git a/bt5/erp5_banking_core/CatalogMethodTemplateItem/portal_catalog/erp5_mysql/z_create_item.xml b/bt5/erp5_banking_core/CatalogMethodTemplateItem/portal_catalog/erp5_mysql/z_create_item.xml new file mode 100644 index 0000000000000000000000000000000000000000..c07b42498dee75dfe9740f1bbb661ed9763bf0f6 --- /dev/null +++ b/bt5/erp5_banking_core/CatalogMethodTemplateItem/portal_catalog/erp5_mysql/z_create_item.xml @@ -0,0 +1,182 @@ +<?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>allow_simple_one_argument_traversal</string> </key> + <value> + <none/> + </value> + </item> + <item> + <key> <string>arguments_src</string> </key> + <value> <string></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_create_item</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># Host:\n +# Database: test\n +# Table: \'item\'\n +#\n +CREATE TABLE `item` (\n + `uid` BIGINT UNSIGNED NOT NULL,\n + `date` datetime,\n + `node_uid` BIGINT UNSIGNED default \'0\',\n + `section_uid` BIGINT UNSIGNED default \'0\',\n + `resource_uid` BIGINT UNSIGNED default \'0\',\n + `aggregate_uid` BIGINT UNSIGNED default \'0\',\n + `variation_text` VARCHAR(255),\n + `simulation_state` VARCHAR(255) defualt \'\',\n + KEY `uid` (`uid`),\n + KEY `node_uid` (`node_uid`),\n + KEY `section_uid` (`section_uid`),\n + KEY `resource_uid` (`resource_uid`),\n + KEY `variation_text` (`variation_text`)\n +) TYPE=InnoDB;\n +\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># Host:\n +# Database: test\n +# Table: \'item\'\n +#\n +CREATE TABLE `item` (\n + `uid` BIGINT UNSIGNED NOT NULL,\n + `date` datetime,\n + `node_uid` BIGINT UNSIGNED default \'0\',\n + `section_uid` BIGINT UNSIGNED default \'0\',\n + `resource_uid` BIGINT UNSIGNED default \'0\',\n + `aggregate_uid` BIGINT UNSIGNED default \'0\',\n + `variation_text` VARCHAR(255),\n + `simulation_state` VARCHAR(255) defualt \'\',\n + KEY `uid` (`uid`),\n + KEY `node_uid` (`node_uid`),\n + KEY `section_uid` (`section_uid`),\n + KEY `resource_uid` (`resource_uid`),\n + KEY `variation_text` (`variation_text`)\n +) TYPE=InnoDB;\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_banking_core/bt/template_catalog_method_id_list b/bt5/erp5_banking_core/bt/template_catalog_method_id_list index ee6e933022d17deb66934263ddd80183273fac4e..5a8708bcd52cb1b22a638a4731039aa7b02c50dc 100644 --- a/bt5/erp5_banking_core/bt/template_catalog_method_id_list +++ b/bt5/erp5_banking_core/bt/template_catalog_method_id_list @@ -2,6 +2,7 @@ erp5_mysql/z_catalog_item_list erp5_mysql/z_catalog_movement_list erp5_mysql/z_catalog_stock_list erp5_mysql/z_create_catalog +erp5_mysql/z_create_item erp5_mysql/z_related_default_site erp5_mysql/z_related_destination_payment erp5_mysql/z_related_translated_simulation_state_title \ No newline at end of file