Commit 834bc9ec authored by Jérome Perrin's avatar Jérome Perrin

experimental for dwh in test

parent 81f093ca
......@@ -1210,6 +1210,11 @@ class ObjectTemplateItem(BaseTemplateItem):
'could not restore %r in %r' % (subobject_id, obj))
if obj.meta_type in ('Z SQL Method',):
fixZSQLMethod(portal, obj)
elif obj.meta_type in ('Z MySQL Database Connection', ):
from Products.ERP5Type.tests.utils import getExtraSqlConnectionStringList
if obj.id == 'gkr_dwh_connection':
obj.edit('', getExtraSqlConnectionStringList()[0])
# XXX experimental
# portal transforms specific initialization
elif obj.meta_type in ('Transform', 'TransformsChain'):
assert container.meta_type == 'Portal Transforms'
......@@ -6023,4 +6028,4 @@ Business Template is a set of definitions, such as skins, portal types and categ
for key in item_name_list:
setattr(BusinessTemplate, key, None)
# Check naming convention of items.
assert item_set.issubset(globals()), item_set.difference(globals())
assert item_set.issubset(globals()), item_set.difference(globals())
\ No newline at end of file
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