Mercurial > libervia-backend
comparison src/memory/sqlite.py @ 1099:1baa116501fa
memory (sqlite): fixes upgrade Deferred issue
author | souliane <souliane@mailoo.org> |
---|---|
date | Sun, 06 Jul 2014 21:54:07 +0200 |
parents | 9378c80e3408 |
children | 5e5661ab5c81 |
comparison
equal
deleted
inserted
replaced
1098:77cd312d32c4 | 1099:1baa116501fa |
---|---|
768 def prepare_queries(result, xmpp_password): | 768 def prepare_queries(result, xmpp_password): |
769 try: | 769 try: |
770 id_ = result[0][0] | 770 id_ = result[0][0] |
771 except IndexError: | 771 except IndexError: |
772 log.error("Profile of id %d is referenced in 'param_ind' but it doesn't exist!" % profile_id) | 772 log.error("Profile of id %d is referenced in 'param_ind' but it doesn't exist!" % profile_id) |
773 return | 773 return defer.succeed(None) |
774 | 774 |
775 sat_password = xmpp_password | 775 sat_password = xmpp_password |
776 d1 = PasswordHasher.hash(sat_password) | 776 d1 = PasswordHasher.hash(sat_password) |
777 personal_key = BlockCipher.getRandomKey(base64=True) | 777 personal_key = BlockCipher.getRandomKey(base64=True) |
778 d2 = BlockCipher.encrypt(sat_password, personal_key) | 778 d2 = BlockCipher.encrypt(sat_password, personal_key) |