Commit 7afa95c2 authored by Rafael Monnerat's avatar Rafael Monnerat

slapos_configurator: Create a single script to define the inital list of BT5...

slapos_configurator: Create a single script to define the inital list of BT5 between the configurator and the upgrader.
parent 91d81266
configuration_save = context.restrictedTraverse(configuration_save_url)
bt5_update_catalog_list = ('erp5_ingestion_mysql_innodb_catalog',
'slapos_cloud', 'erp5_accounting',
'erp5_movement_table_catalog')
bt5_installation_list, bt5_update_catalog_list, _ = \
context.TemplateTool_getSlapOSMasterBusinessTemplateList()
bt5_installation_list = bt5_update_catalog_list + ('slapos_erp5',)
for name in bt5_installation_list:
configuration_save.addConfigurationItem("Standard BT5 Configurator Item",
title=name, bt5_id=name,
......
""" Simple place for keep the list of business template to install on this project
"""
bt5_update_catalog_list = ('erp5_ingestion_mysql_innodb_catalog',
'slapos_cloud', 'erp5_accounting',
'erp5_movement_table_catalog')
bt5_installation_list = bt5_update_catalog_list + ('slapos_configurator', 'slapos_erp5')
keep_bt5_id_list = ['erp5_ui_test',
'erp5_ui_test_core',
'slapos_category',
'erp5_secure_payment',
'vifib_datas']
return bt5_installation_list, bt5_update_catalog_list, keep_bt5_id_list
<?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>_params</string> </key>
<value> <string></string> </value>
</item>
<item>
<key> <string>id</string> </key>
<value> <string>TemplateTool_getSlapOSMasterBusinessTemplateList</string> </value>
</item>
</dictionary>
</pickle>
</record>
</ZopeData>
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment