i was just writing a doctest to look at this with web.py 0.3 from the
latest bzr and i think i may have found a bug. here's the doctest:
>>> import web
>>> urls = ("/hello/(.*)", "hello")
>>> app = web.application(urls, globals())
>>> class hello:
... def GET(self, something):
... return something, dict(web.input())
>>> app.request("/hello/").data
"('', {})"
>>> app.request("/hello/dude").data
"('dude', {})"
>>> app.request("/hello/dude?abc=123&def=456").data
"('dude?abc=123&def=456', {'abc': '123', 'def': '456'})"
# should be
# "('dude', {'abc': '123', 'def': '456'})"
where the last doctest i show what actually happens and in comments is
what i think should happen. isnt this different from 0.2? where the
PATH stuff after ? is not included in the matching from the urls?
-brent
On Mon, Apr 7, 2008 at 1:17 PM, dineshv <[EMAIL PROTECTED]> wrote:
>
> Are there some examples or an online source that provides different
> examples of writing webpy urls ie. '/', '/a(.*)', '/(a(.*))/?', etc.
> etc. and what they mean?
>
> >
>
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"web.py" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at http://groups.google.com/group/webpy?hl=en
-~----------~----~----~----~------~----~------~--~---