Commit eb11e812 authored by Jérome Perrin's avatar Jérome Perrin

when restoring connection strings, also restore transactionless connection

string, defaulting to cmf_activity connection string (like it's done in
ERP5/ERP5Site)


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@23343 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 11e00886
......@@ -191,6 +191,12 @@ def _getConnectionStringDict():
if cmf_activity_sql_connection_string:
connection_string_dict['cmf_activity_sql_connection_string'] = \
cmf_activity_sql_connection_string
erp5_sql_transactionless_connection_string = os.environ.get(
'erp5_sql_transactionless_connection_string',
'-%s' % cmf_activity_sql_connection_string)
if erp5_sql_transactionless_connection_string:
connection_string_dict['erp5_sql_transactionless_connection_string'] = \
erp5_sql_transactionless_connection_string
erp5_sql_deferred_connection_string = os.environ.get(
'erp5_sql_deferred_connection_string',
os.environ.get('erp5_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