should reset sqlutils.SQL_PREFIX as well stable
authorSylvain Thénault <sylvain.thenault@logilab.fr>
Mon, 25 May 2009 12:57:19 +0200
branchstable
changeset 1913 7d7bfd30c7f5
parent 1909 58374d1f6d9b
child 1915 12cd95af4e90
should reset sqlutils.SQL_PREFIX as well
server/schemaserial.py
--- a/server/schemaserial.py	Sun May 24 22:41:24 2009 +0200
+++ b/server/schemaserial.py	Mon May 25 12:57:19 2009 +0200
@@ -51,7 +51,7 @@
 def _set_sql_prefix(prefix):
     """3.2.0 migration function: allow to unset/reset SQL_PREFIX"""
     for module in ('checkintegrity', 'migractions', 'schemahooks',
-                   'sources.rql2sql', 'sources.native'):
+                   'sources.rql2sql', 'sources.native', 'sqlutils'):
         try:
             sys.modules['cubicweb.server.%s' % module].SQL_PREFIX = prefix
             print 'changed SQL_PREFIX for %s' % module