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: |