correct wrong condition and missing import tls-sprint
authorGraziella Toutoungis <graziella.toutoungis@logilab.fr>
Mon, 11 May 2009 08:02:49 +0200
branchtls-sprint
changeset 1717 d2c4d3bd0602
parent 1716 b12d9e22bac3
child 1718 26ff2d292183
correct wrong condition and missing import
web/request.py
--- a/web/request.py	Thu May 07 17:33:15 2009 +0200
+++ b/web/request.py	Mon May 11 08:02:49 2009 +0200
@@ -17,6 +17,7 @@
 from rql.utils import rqlvar_maker
 
 from logilab.common.decorators import cached
+from logilab.common.deprecation import obsolete
 
 from cubicweb.dbapi import DBAPIRequest
 from cubicweb.common.mail import header
@@ -618,7 +619,7 @@
                 for score in scores.split(';'):
                     try:
                         scorekey, scoreval = score.split('=')
-                        if scorekey = 'q': # XXX 'level'
+                        if scorekey == 'q': # XXX 'level'
                             score = float(score[2:]) # remove 'q='
                     except ValueError:
                         continue