web/views/urlrewrite.py
changeset 10399 5234525560ac
parent 9492 c7fc56eecd1a
child 10612 84468b90e9c1
--- a/web/views/urlrewrite.py	Fri Jun 19 17:54:04 2015 +0200
+++ b/web/views/urlrewrite.py	Thu Apr 30 13:06:45 2015 +0200
@@ -167,16 +167,13 @@
         return None, None
     return do_build_rset
 
-def rgx_action(rql=None, args=None, cachekey=None, argsgroups=(), setuser=False,
+def rgx_action(rql=None, args=None, argsgroups=(), setuser=False,
                form=None, formgroups=(), transforms={}, rqlformparams=(), controller=None):
     def do_build_rset(inputurl, uri, req, schema,
-                      cachekey=cachekey # necessary to avoid UnboundLocalError
                       ):
         if rql:
             kwargs = args and args.copy() or {}
             if argsgroups:
-                if cachekey is not None and isinstance(cachekey, basestring):
-                    cachekey = (cachekey,)
                 match = inputurl.match(uri)
                 for key in argsgroups:
                     value = match.group(key)
@@ -184,13 +181,11 @@
                         kwargs[key] = transforms[key](value)
                     except KeyError:
                         kwargs[key] = value
-                    if cachekey is not None and key in cachekey:
-                        kwargs[key] = int(value)
             if setuser:
                 kwargs['u'] = req.user.eid
             for param in rqlformparams:
                 kwargs.setdefault(param, req.form.get(param))
-            rset = req.execute(rql, kwargs, cachekey)
+            rset = req.execute(rql, kwargs)
         else:
             rset = None
         form2 = form and form.copy() or {}