I've been trying to use a pattern-based incoming route to strip off some 
elements of the path and pass them to the controller as vars, e.g.

routes_in = (
    ('/svn/(?P<svn_url>.*)', '/svnweb/default/index?svn_url=\g<svn_url>'),
)

It looks to me like regex_filter_in is doing what I would expect with this, 
but then in regex_url_in, the new query string is updated to 
request.env['query_string'] instead of request.env['QUERY_STRING']:

request.env.update( (k*.lower()*.replace('.', '_'), v) for k, v in 
environ.iteritems())
but request.env['QUERY_STRING'] is what is parsed later to get request.vars.

I was hoping I would find some simple thing I could patch, but now it seems 
like it is tangled up in a design choice that has been in the repo for a 
while (in slightly different forms) and that I don't understand, so I am 
asking for help/advice. (Overall, BTW, I really like this platform.)

-- Rich Hogg


-- 
Resources:
- http://web2py.com
- http://web2py.com/book (Documentation)
- http://github.com/web2py/web2py (Source code)
- https://code.google.com/p/web2py/issues/list (Report Issues)
--- 
You received this message because you are subscribed to the Google Groups 
"web2py-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to web2py+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to