web/views/urlrewrite.py
branchstable
changeset 3864 2fee9151c6b2
parent 3856 1c9589e46b16
child 3865 f9778a00e47f
equal deleted inserted replaced
3863:fe22502d4ab1 3864:2fee9151c6b2
   150 def rgx_action(rql=None, args=None, cachekey=None, argsgroups=(), setuser=False,
   150 def rgx_action(rql=None, args=None, cachekey=None, argsgroups=(), setuser=False,
   151                form=None, formgroups=(), transforms={}, controller=None):
   151                form=None, formgroups=(), transforms={}, controller=None):
   152     def do_build_rset(inputurl, uri, req, schema):
   152     def do_build_rset(inputurl, uri, req, schema):
   153         if rql:
   153         if rql:
   154             kwargs = args and args.copy() or {}
   154             kwargs = args and args.copy() or {}
       
   155             cachekey = cachekey # necessary to avoid UnboundLocalError
   155             if argsgroups:
   156             if argsgroups:
   156                 if cachekey is not None and isinstance(cachekey, basestring):
   157                 if cachekey is not None and isinstance(cachekey, basestring):
   157                     cachekey = (cachekey,)
   158                     cachekey = (cachekey,)
   158                 match = inputurl.match(uri)
   159                 match = inputurl.match(uri)
   159                 for key in argsgroups:
   160                 for key in argsgroups: