[Erp5-report] r39072 rafael - in /erp5/trunk/bt5/erp5_upgrader: SkinTemplateItem/portal_ski...
nobody at svn.erp5.org
nobody at svn.erp5.org
Tue Oct 12 21:19:55 CEST 2010
Author: rafael
Date: Tue Oct 12 21:19:54 2010
New Revision: 39072
URL: http://svn.erp5.org?rev=39072&view=rev
Log:
Added before Upgrade Product Path script.
By default update Message Queue table.
Added:
erp5/trunk/bt5/erp5_upgrader/SkinTemplateItem/portal_skins/erp5_upgrader/ActivityTool_showMessageQueueTableColumns.xml
erp5/trunk/bt5/erp5_upgrader/SkinTemplateItem/portal_skins/erp5_upgrader/ActivityTool_upgradeMessageQueueTable.xml
erp5/trunk/bt5/erp5_upgrader/SkinTemplateItem/portal_skins/erp5_upgrader/ERP5Site_beforeUpgradeProductPath.xml
Modified:
erp5/trunk/bt5/erp5_upgrader/bt/revision
Added: erp5/trunk/bt5/erp5_upgrader/SkinTemplateItem/portal_skins/erp5_upgrader/ActivityTool_showMessageQueueTableColumns.xml
URL: http://svn.erp5.org/erp5/trunk/bt5/erp5_upgrader/SkinTemplateItem/portal_skins/erp5_upgrader/ActivityTool_showMessageQueueTableColumns.xml?rev=39072&view=auto
==============================================================================
--- erp5/trunk/bt5/erp5_upgrader/SkinTemplateItem/portal_skins/erp5_upgrader/ActivityTool_showMessageQueueTableColumns.xml (added)
+++ erp5/trunk/bt5/erp5_upgrader/SkinTemplateItem/portal_skins/erp5_upgrader/ActivityTool_showMessageQueueTableColumns.xml [utf8] Tue Oct 12 21:19:54 2010
@@ -0,0 +1,215 @@
+<?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/>
+ </value>
+ </item>
+ <item>
+ <key> <string>_keys</string> </key>
+ <value>
+ <list/>
+ </value>
+ </item>
+ </dictionary>
+ </state>
+ </object>
+ </value>
+ </item>
+ <item>
+ <key> <string>_col</string> </key>
+ <value>
+ <list>
+ <dictionary>
+ <item>
+ <key> <string>name</string> </key>
+ <value> <string>Field</string> </value>
+ </item>
+ <item>
+ <key> <string>null</string> </key>
+ <value> <int>0</int> </value>
+ </item>
+ <item>
+ <key> <string>type</string> </key>
+ <value> <string>t</string> </value>
+ </item>
+ <item>
+ <key> <string>width</string> </key>
+ <value> <int>18</int> </value>
+ </item>
+ </dictionary>
+ <dictionary>
+ <item>
+ <key> <string>name</string> </key>
+ <value> <string>Type</string> </value>
+ </item>
+ <item>
+ <key> <string>null</string> </key>
+ <value> <int>0</int> </value>
+ </item>
+ <item>
+ <key> <string>type</string> </key>
+ <value> <string>t</string> </value>
+ </item>
+ <item>
+ <key> <string>width</string> </key>
+ <value> <int>19</int> </value>
+ </item>
+ </dictionary>
+ <dictionary>
+ <item>
+ <key> <string>name</string> </key>
+ <value> <string>Null</string> </value>
+ </item>
+ <item>
+ <key> <string>null</string> </key>
+ <value> <int>0</int> </value>
+ </item>
+ <item>
+ <key> <string>type</string> </key>
+ <value> <string>t</string> </value>
+ </item>
+ <item>
+ <key> <string>width</string> </key>
+ <value> <int>3</int> </value>
+ </item>
+ </dictionary>
+ <dictionary>
+ <item>
+ <key> <string>name</string> </key>
+ <value> <string>Key</string> </value>
+ </item>
+ <item>
+ <key> <string>null</string> </key>
+ <value> <int>0</int> </value>
+ </item>
+ <item>
+ <key> <string>type</string> </key>
+ <value> <string>t</string> </value>
+ </item>
+ <item>
+ <key> <string>width</string> </key>
+ <value> <int>3</int> </value>
+ </item>
+ </dictionary>
+ <dictionary>
+ <item>
+ <key> <string>name</string> </key>
+ <value> <string>Default</string> </value>
+ </item>
+ <item>
+ <key> <string>null</string> </key>
+ <value> <int>1</int> </value>
+ </item>
+ <item>
+ <key> <string>type</string> </key>
+ <value> <string>t</string> </value>
+ </item>
+ <item>
+ <key> <string>width</string> </key>
+ <value> <int>2</int> </value>
+ </item>
+ </dictionary>
+ <dictionary>
+ <item>
+ <key> <string>name</string> </key>
+ <value> <string>Extra</string> </value>
+ </item>
+ <item>
+ <key> <string>null</string> </key>
+ <value> <int>0</int> </value>
+ </item>
+ <item>
+ <key> <string>type</string> </key>
+ <value> <string>t</string> </value>
+ </item>
+ <item>
+ <key> <string>width</string> </key>
+ <value> <int>0</int> </value>
+ </item>
+ </dictionary>
+ </list>
+ </value>
+ </item>
+ <item>
+ <key> <string>arguments_src</string> </key>
+ <value> <string></string> </value>
+ </item>
+ <item>
+ <key> <string>connection_id</string> </key>
+ <value> <string>cmf_activity_sql_connection</string> </value>
+ </item>
+ <item>
+ <key> <string>id</string> </key>
+ <value> <string>ActivityTool_showMessageQueueTableColumns</string> </value>
+ </item>
+ <item>
+ <key> <string>src</string> </key>
+ <value> <string>show columns from message_queue</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>show columns from message_queue</string> </value>
+ </item>
+ </dictionary>
+ </state>
+ </object>
+ </value>
+ </item>
+ <item>
+ <key> <string>title</string> </key>
+ <value> <string></string> </value>
+ </item>
+ </dictionary>
+ </pickle>
+ </record>
+</ZopeData>
Added: erp5/trunk/bt5/erp5_upgrader/SkinTemplateItem/portal_skins/erp5_upgrader/ActivityTool_upgradeMessageQueueTable.xml
URL: http://svn.erp5.org/erp5/trunk/bt5/erp5_upgrader/SkinTemplateItem/portal_skins/erp5_upgrader/ActivityTool_upgradeMessageQueueTable.xml?rev=39072&view=auto
==============================================================================
--- erp5/trunk/bt5/erp5_upgrader/SkinTemplateItem/portal_skins/erp5_upgrader/ActivityTool_upgradeMessageQueueTable.xml (added)
+++ erp5/trunk/bt5/erp5_upgrader/SkinTemplateItem/portal_skins/erp5_upgrader/ActivityTool_upgradeMessageQueueTable.xml [utf8] Tue Oct 12 21:19:54 2010
@@ -0,0 +1,100 @@
+<?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/>
+ </value>
+ </item>
+ <item>
+ <key> <string>_keys</string> </key>
+ <value>
+ <list/>
+ </value>
+ </item>
+ </dictionary>
+ </state>
+ </object>
+ </value>
+ </item>
+ <item>
+ <key> <string>arguments_src</string> </key>
+ <value> <string></string> </value>
+ </item>
+ <item>
+ <key> <string>connection_id</string> </key>
+ <value> <string>cmf_activity_sql_connection</string> </value>
+ </item>
+ <item>
+ <key> <string>id</string> </key>
+ <value> <string>ActivityTool_upgradeMessageQueueTable</string> </value>
+ </item>
+ <item>
+ <key> <string>src</string> </key>
+ <value> <string>alter table message_queue add column `group_method_id` VARCHAR(255) NOT NULL DEFAULT \'\' AFTER `priority`</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>alter table message_queue add column `group_method_id` VARCHAR(255) NOT NULL DEFAULT \'\' AFTER `priority`</string> </value>
+ </item>
+ </dictionary>
+ </state>
+ </object>
+ </value>
+ </item>
+ <item>
+ <key> <string>title</string> </key>
+ <value> <string></string> </value>
+ </item>
+ </dictionary>
+ </pickle>
+ </record>
+</ZopeData>
Added: erp5/trunk/bt5/erp5_upgrader/SkinTemplateItem/portal_skins/erp5_upgrader/ERP5Site_beforeUpgradeProductPath.xml
URL: http://svn.erp5.org/erp5/trunk/bt5/erp5_upgrader/SkinTemplateItem/portal_skins/erp5_upgrader/ERP5Site_beforeUpgradeProductPath.xml?rev=39072&view=auto
==============================================================================
--- erp5/trunk/bt5/erp5_upgrader/SkinTemplateItem/portal_skins/erp5_upgrader/ERP5Site_beforeUpgradeProductPath.xml (added)
+++ erp5/trunk/bt5/erp5_upgrader/SkinTemplateItem/portal_skins/erp5_upgrader/ERP5Site_beforeUpgradeProductPath.xml [utf8] Tue Oct 12 21:19:54 2010
@@ -0,0 +1,130 @@
+<?xml version="1.0"?>
+<ZopeData>
+ <record id="1" aka="AAAAAAAAAAE=">
+ <pickle>
+ <global name="PythonScript" module="Products.PythonScripts.PythonScript"/>
+ </pickle>
+ <pickle>
+ <dictionary>
+ <item>
+ <key> <string>Script_magic</string> </key>
+ <value> <int>3</int> </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># Update activity tables before upgrade upgrade products.\n
+# XXX The followed scripts could be even more generic.\n
+\n
+column_list = [i[0] for i in context.portal_activities.ActivityTool_showMessageQueueTableColumns()]\n
+if \'group_method_id\' not in column_list:\n
+ context.portal_activities.ActivityTool_upgradeMessageQueueTable()\n
+</string> </value>
+ </item>
+ <item>
+ <key> <string>_code</string> </key>
+ <value>
+ <none/>
+ </value>
+ </item>
+ <item>
+ <key> <string>_params</string> </key>
+ <value> <string></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>0</int> </value>
+ </item>
+ <item>
+ <key> <string>co_varnames</string> </key>
+ <value>
+ <tuple>
+ <string>append</string>
+ <string>$append0</string>
+ <string>_getiter_</string>
+ <string>_getattr_</string>
+ <string>context</string>
+ <string>i</string>
+ <string>_getitem_</string>
+ <string>column_list</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>ERP5Site_beforeUpgradeProductPath</string> </value>
+ </item>
+ <item>
+ <key> <string>warnings</string> </key>
+ <value>
+ <tuple/>
+ </value>
+ </item>
+ </dictionary>
+ </pickle>
+ </record>
+</ZopeData>
Modified: erp5/trunk/bt5/erp5_upgrader/bt/revision
URL: http://svn.erp5.org/erp5/trunk/bt5/erp5_upgrader/bt/revision?rev=39072&r1=39071&r2=39072&view=diff
==============================================================================
--- erp5/trunk/bt5/erp5_upgrader/bt/revision [utf8] (original)
+++ erp5/trunk/bt5/erp5_upgrader/bt/revision [utf8] Tue Oct 12 21:19:54 2010
@@ -1 +1 @@
-533
\ No newline at end of file
+534
\ No newline at end of file
More information about the Erp5-report
mailing list