[db creation] fix some bugs introduced by the migration to logilab.database
authorSylvain Thénault <sylvain.thenault@logilab.fr>
Fri, 12 Mar 2010 11:49:05 +0100
changeset 4886 18a1735c283c
parent 4884 f175997057b5
child 4894 41c28ddca055
[db creation] fix some bugs introduced by the migration to logilab.database
server/serverctl.py
--- a/server/serverctl.py	Fri Mar 12 10:53:25 2010 +0100
+++ b/server/serverctl.py	Fri Mar 12 11:49:05 2010 +0100
@@ -329,7 +329,7 @@
                                            source['db-encoding'])
                 else:
                     helper.create_database(cursor, dbname,
-                                           encoding=source['db-encoding'])
+                                           dbencoding=source['db-encoding'])
                 dbcnx.commit()
                 print '-> database %s created.' % dbname
             except:
@@ -337,7 +337,7 @@
                 raise
         cnx = system_source_cnx(source, special_privs='LANGUAGE C', verbose=verbose)
         cursor = cnx.cursor()
-        dbhelper.init_fti_extensions(cursor)
+        helper.init_fti_extensions(cursor)
         # postgres specific stuff
         if driver == 'postgres':
             # install plpythonu/plpgsql language if not installed by the cube