should ensure lgc is configured to not use mx to avoid error if backend module is missing mx support
authorSylvain Thénault <sylvain.thenault@logilab.fr>
Wed, 22 Jul 2009 18:33:35 +0200
changeset 2417 18a14c23413c
parent 2402 321a87654988
child 2418 8f06e4f02733
should ensure lgc is configured to not use mx to avoid error if backend module is missing mx support
server/serverctl.py
--- a/server/serverctl.py	Tue Jul 21 12:59:31 2009 +0200
+++ b/server/serverctl.py	Wed Jul 22 18:33:35 2009 +0200
@@ -74,7 +74,9 @@
     """return a connection on the RDMS system table (to create/drop a user
     or a database
     """
+    import logilab.common as lgp
     from logilab.common.adbh import get_adv_func_helper
+    lgp.USE_MX_DATETIME = False
     special_privs = ''
     driver = source['db-driver']
     helper = get_adv_func_helper(driver)