# HG changeset patch # User Daniele Nicolodi # Date 1320746655 -3600 # Node ID c88f216f1830ecdb6dc41eba5c34f2ccc27d0b45 # Parent 5226ceb52b92c9933dce73ac47e7991b6da2f78a Remove hardcoded administrative database name. diff -r 5226ceb52b92 -r c88f216f1830 src/ltpdarepo/views/users.py --- a/src/ltpdarepo/views/users.py Mon Nov 07 20:21:32 2011 +0100 +++ b/src/ltpdarepo/views/users.py Tue Nov 08 11:04:15 2011 +0100 @@ -134,7 +134,7 @@ curs.execute("""SELECT db_name, IFNULL(Select_priv, 'N'), IFNULL(Insert_priv, 'N'), IFNULL(Update_priv, 'N'), IFNULL(Delete_priv, 'N') - FROM ltpda.available_dbs + FROM available_dbs LEFT JOIN mysql.db ON db_name=Db AND User=%s ORDER BY db_name""", username) privs = OrderedDict()