[Erp5-report] r9380 - /erp5/trunk/products/ERP5/ERP5Site.py
nobody at svn.erp5.org
nobody at svn.erp5.org
Thu Aug 24 11:08:15 CEST 2006
Author: vincent
Date: Thu Aug 24 11:08:14 2006
New Revision: 9380
URL: http://svn.erp5.org?rev=9380&view=rev
Log:
Create new transactionless SQL connection at site creation.
Modified:
erp5/trunk/products/ERP5/ERP5Site.py
Modified: erp5/trunk/products/ERP5/ERP5Site.py
URL: http://svn.erp5.org/erp5/trunk/products/ERP5/ERP5Site.py?rev=9380&r1=9379&r2=9380&view=diff
==============================================================================
--- erp5/trunk/products/ERP5/ERP5Site.py (original)
+++ erp5/trunk/products/ERP5/ERP5Site.py Thu Aug 24 11:08:14 2006
@@ -1038,6 +1038,18 @@
addSQLConnection('cmf_activity_sql_connection',
'CMF Activity SQL Server Connection',
p.cmf_activity_sql_connection_string)
+ # Warning : This transactionless connection is created with
+ # the activity connection string and not the catalog's because
+ # it's not compatible with the hot reindexing feature.
+ # Though, it has nothing to do with activities.
+ # The only difference compared to activity connection is the
+ # minux prepended to the conneciton string.
+ if not p.hasObject('erp5_sql_transactionless_connection'):
+ addSQLConnection = p.manage_addProduct['ZMySQLDA'].\
+ manage_addZMySQLConnection
+ addSQLConnection('erp5_sql_transactionless_connection',
+ 'ERP5 Transactionless SQL Server Connection',
+ '-%s' % p.cmf_activity_sql__connection_string)
elif p.cmf_activity_sql_connection_type == 'Z Gadfly':
pass
More information about the Erp5-report
mailing list