pgsql/set-permissions.py
branchv0.7.x
changeset 644 d879f915c1c5
parent 558 2fcf12fdecc2
child 645 fcc3f100e56a
--- a/pgsql/set-permissions.py	Tue Nov 20 13:40:32 2012 +0000
+++ b/pgsql/set-permissions.py	Tue Nov 20 13:48:00 2012 +0000
@@ -119,10 +119,10 @@
                 (dc_rw_tbls, db['dovecot']))
     dbc.execute('GRANT SELECT ON %s TO %s' % (dc_ro_tbls, db['dovecot']))
     dbc.execute('GRANT SELECT ON %s TO %s' % (pf_ro_tbls, db['postfix']))
-    for table, columns in db['dovecot_tbls'].iteritems():
+    for table, columns in db['dovecot_tbls'].items():
         dbc.execute('GRANT SELECT (%s) ON %s TO %s' % (columns, table,
                                                        db['dovecot']))
-    for table, columns in db['postfix_tbls'].iteritems():
+    for table, columns in db['postfix_tbls'].items():
         dbc.execute('GRANT SELECT (%s) ON %s TO %s' % (columns, table,
                                                        db['postfix']))
     dbc.close()