fix UnboundLocalError stable
authorSylvain Thénault <sylvain.thenault@logilab.fr>
Mon, 16 Nov 2009 17:51:45 +0100
branchstable
changeset 3864 2fee9151c6b2
parent 3863 fe22502d4ab1
child 3865 f9778a00e47f
fix UnboundLocalError
web/views/urlrewrite.py
--- a/web/views/urlrewrite.py	Mon Nov 16 17:20:03 2009 +0100
+++ b/web/views/urlrewrite.py	Mon Nov 16 17:51:45 2009 +0100
@@ -152,6 +152,7 @@
     def do_build_rset(inputurl, uri, req, schema):
         if rql:
             kwargs = args and args.copy() or {}
+            cachekey = cachekey # necessary to avoid UnboundLocalError
             if argsgroups:
                 if cachekey is not None and isinstance(cachekey, basestring):
                     cachekey = (cachekey,)