New submission from Nuno Teixeira <tei...@gmail.com>: To avoid SAWarning messages like below request to DB should be unicoded:
SAWarning: Unicode type received non-unicode bind param value 'foo' nteixe...@nteixeira-desktop:~/co/repoze.whoplugins.whoalchemy$ svn diff Index: repoze/who/plugins/sa.py ============================================================ ======= --- repoze/who/plugins/sa.py (revision 9491) +++ repoze/who/plugins/sa.py (working copy) @@ -53,7 +53,7 @@ self.translations['user_name']) query = self.dbsession.query(self.user_class) - query = query.filter(username_attr==username) + query = query.filter(username_attr == unicode(username)) try: return query.one() ---------- messages: 413 nosy: nteixeira priority: bug status: unread title: Fix SAWarning messages when using repoze.who.plugins.sa plugins __________________________________ Repoze Bugs <b...@bugs.repoze.org> <http://bugs.repoze.org/issue149> __________________________________ _______________________________________________ Repoze-dev mailing list Repoze-dev@lists.repoze.org http://lists.repoze.org/listinfo/repoze-dev