Oh! Okay, so in my case how do I then pickup q=a (or whatever the
browser sends) and limit=150? Do I still use web.input?
On Apr 7, 7:30 am, "Hermann Kaser" <[EMAIL PROTECTED]> wrote:
> Say you have
>
> urls = ('/[a-z]+/?', 'index')
>
> then the declaration would be
>
> def GET(self):
>
> but if instead you have:
>
> urls = ('/([a-z]+)/?', 'index')
>
> the declaration would have to be
>
> def GET(self, url_bit):
>
> because you are matching some part of the url. If you were to use this
> second option and go to /ac/?q=a&limit=150 then url_bit would be equal
> to 'ac'.
>
> I'm saying all this because I get the error you are pointing out all
> the time when i either forget to include the matching bit in the urls
> but declare it in the def or vice versa.
>
> --
> Hermann Käserhttp://theragingche.com/http://semicir.cl/user/hermzz
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---