# HG changeset patch
# User Sylvain Thénault <sylvain.thenault@logilab.fr>
# Date 1258390305 -3600
# Node ID 2fee9151c6b2362a761b574b754ad688236b31ed
# Parent  fe22502d4ab1f16d2ba3f97d79d9b585735ee080
fix UnboundLocalError

diff -r fe22502d4ab1 -r 2fee9151c6b2 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,)