wrong variable name tls-sprint
authorGraziella Toutoungis <graziella.toutoungis@logilab.fr>
Mon, 11 May 2009 09:57:02 +0200
branchtls-sprint
changeset 1719 bf26f32c8a72
parent 1718 26ff2d292183
child 1720 14c9a0a1aca1
wrong variable name
web/views/__init__.py
--- a/web/views/__init__.py	Mon May 11 09:56:21 2009 +0200
+++ b/web/views/__init__.py	Mon May 11 09:57:02 2009 +0200
@@ -60,8 +60,8 @@
     if rset is None:
         return 'index'
     for mimetype in req.parse_accept_header('Accept'):
-        if mimetype in VID_FROM_RSET:
-            return VID_FROM_RSET[mimetype]
+        if mimetype in VID_BY_MIMETYPE:
+            return VID_BY_MIMETYPE[mimetype]
     nb_rows = len(rset)
     # empty resultset
     if nb_rows == 0 :