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,)