I am trying to implement a wild-card url processor and gets an error

<class 'sre_constants.error'> at /foo
nothing to repeat

dropping below a sample file

#app.py

import web

urls = (
    '/', 'HomePage',
    '/(*)', 'AnythingElse',
)

web.webapi.internalerror = web.debugerror

class HomePage(object):
    def GET(self):
        print "Welcome Home"

class AnythingElse(object):
    def GET(self, url):
        print "going away from home?"

if __name__== "__main__":
    web.run(urls, globals(), web.reloader)

--~--~---------~--~----~------------~-------~--~----~
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