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äser
http://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
-~----------~----~----~----~------~----~------~--~---

Reply via email to