equal
deleted
inserted
replaced
186 return controller, rset |
186 return controller, rset |
187 return do_build_rset |
187 return do_build_rset |
188 |
188 |
189 |
189 |
190 class SchemaBasedRewriter(URLRewriter): |
190 class SchemaBasedRewriter(URLRewriter): |
191 """Here, the rules dict maps regexps or plain strings to |
191 """Here, the rules dict maps regexps or plain strings to callbacks |
192 callbacks that will be called with (input, uri, req, schema) |
192 that will be called with inputurl, uri, req, schema as parameters. |
193 """ |
193 """ |
194 __regid__ = 'schemabased' |
194 __regid__ = 'schemabased' |
195 rules = [ |
195 rules = [ |
196 # rgxp : callback |
196 # rgxp : callback |
197 (rgx('/search/(.+)'), build_rset(rql=r'Any X WHERE X has_text %(text)s', |
197 (rgx('/search/(.+)'), build_rset(rql=r'Any X WHERE X has_text %(text)s', |