I cannot reproduce it.
try this simple routes.py
routes_in = (
('/$language/$anything','/$anything?lang=$language'),
)
then visit:
http://127.0.0.1:8000/en/examples/simple_examples/status
the ?lang=en is in there.
On Friday, 16 May 2014 20:56:19 UTC-5, Manoj Sonawane wrote:
>
> bumping. if anyone can show way it will be great
>
> On Friday, May 16, 2014 9:02:32 AM UTC+8, Manoj Sonawane wrote:
>>
>> Hello,
>> Following is my main routes.py
>>
>> logging = 'debug'
>> default_application = "myshop"
>> routes_app = ((r'/(?P<app>welcome|admin|app)\b.*', r'\g<app>'),
>> (r'(.*)', r'myshop'),
>> (r'/?(.*)', r'myshop')\
>> )
>>
>> followed by myshop/routes.py
>> # -*- coding: utf-8 -*-
>> default_controller = 'default' # ordinarily set in app-specific routes.py
>> default_function = 'index' # ordinarily set in app-specific routes.py
>>
>> routes_in = (
>> ('/', '/myshop/default/index'),
>> # ('/static/(?P<path>.*)', '/myshop/static/\g<path>'),
>> ('/$language/$anything','/myshop/default/index?lang=$language'),
>> )
>>
>> routes_out = (
>> ('/static/$anything','/app/static/$anything'),
>> ('/default/$anything?lang=$language',r'/app/$language/$anything')
>> )
>>
>> this should set a request.var but it is not. any pointers ?
>>
>> Thanks
>>
>
--
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 [email protected].
For more options, visit https://groups.google.com/d/optout.