Bug? request.vars not set by routes_in query string.

33 views
Skip to first unread message

Jim Karsten

unread,
Sep 25, 2014, 5:45:19 PM9/25/14
to web...@googlegroups.com
I am setting a query string in routes_in but the request.vars is not getting set. To replicate:
                                                                                  
In routes.py
    routes_in = (
        (BASE + '/$anything', '/welcome/default/index?aaa=111&bbb=222'),
        ...
        )
                                                                                     
Then in applications/welcome/views/default/index.html                                         
                                                                              
    <div>
        vars: {{=request.vars}}<br>
        env: {{=request.env.query_string}}
    </div>
                                                                                     
When I visit the welcome app, request.vars displays empty but request.env.query_string is set to
'aaa=111&bbb=222'
Is this expected or a bug?

Tested with: Version 2.9.11-stable+timestamp.2014.09.15.23.35.11

Thanks,
Jim

Massimo Di Pierro

unread,
Sep 26, 2014, 10:48:13 AM9/26/14
to web...@googlegroups.com
 bug. please open a ticket so we track it and fix it.

Jim Karsten

unread,
Sep 26, 2014, 11:02:45 AM9/26/14
to web...@googlegroups.com
Reply all
Reply to author
Forward
0 new messages