Commit cd53a05a authored by Julien Muchembled's avatar Julien Muchembled

Fix type CMF Activity SQL connection on ERP5 Site creation

... instead of relying on automatic migration.

This fixes TestCMFActivity.test_connection_sortkey on Zope 2.13
parent 4ea0eaea
...@@ -1901,8 +1901,8 @@ class ERP5Generator(PortalGenerator): ...@@ -1901,8 +1901,8 @@ class ERP5Generator(PortalGenerator):
# Add Activity SQL Connections # Add Activity SQL Connections
if p.cmf_activity_sql_connection_type == 'Z MySQL Database Connection': if p.cmf_activity_sql_connection_type == 'Z MySQL Database Connection':
if not p.hasObject('cmf_activity_sql_connection'): if not p.hasObject('cmf_activity_sql_connection'):
addSQLConnection = p.manage_addProduct['ZMySQLDA'].\ addSQLConnection = p.manage_addProduct['CMFActivity'].\
manage_addZMySQLConnection manage_addActivityConnection
addSQLConnection('cmf_activity_sql_connection', addSQLConnection('cmf_activity_sql_connection',
'CMF Activity SQL Server Connection', 'CMF Activity SQL Server Connection',
p.cmf_activity_sql_connection_string) p.cmf_activity_sql_connection_string)
......
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