summaryrefslogtreecommitdiff
path: root/addons/auth_crypt/auth_crypt.py
diff options
context:
space:
mode:
authorXavier Morel <xmo@openerp.com>2014-06-19 09:14:21 +0200
committerXavier Morel <xmo@openerp.com>2014-06-19 09:14:21 +0200
commitd36f605f58cfa49a0786c7945e8bccf056d88941 (patch)
treea88d26a4c4d7eeb3956751e3d26d864c374c25a9 /addons/auth_crypt/auth_crypt.py
parentfc846655d68802d5429804d8ee1ca475f3b410d5 (diff)
[IMP] auth_crypt: simplify get_pw
Diffstat (limited to 'addons/auth_crypt/auth_crypt.py')
-rw-r--r--addons/auth_crypt/auth_crypt.py8
1 files changed, 1 insertions, 7 deletions
diff --git a/addons/auth_crypt/auth_crypt.py b/addons/auth_crypt/auth_crypt.py
index 11537cd4c85..50bda9a8588 100644
--- a/addons/auth_crypt/auth_crypt.py
+++ b/addons/auth_crypt/auth_crypt.py
@@ -49,13 +49,7 @@ class res_users(osv.osv):
def get_pw( self, cr, uid, ids, name, args, context ):
cr.execute('select id, password from res_users where id in %s', (tuple(map(int, ids)),))
- stored_pws = cr.fetchall()
- res = {}
-
- for id, stored_pw in stored_pws:
- res[id] = stored_pw
-
- return res
+ return dict(cr.fetchall())
_columns = {
'password': fields.function(get_pw, fnct_inv=set_pw, type='char', string='Password', invisible=True, store=True),