When mapping URLs to request handlers, the way I’m coding it is like
so:
application = webapp.WSGIApplication(
[('/Cat', CatHandler),
('/Dog', DogHandler),
(‘/Fish’, FishHandler)])
Instead of hard coding each URL to a handler, is there anyway I can
get a variable out of the Regular expression to use? Something like
this:
application = webapp.WSGIApplication(
[('/(Cat|Dog|Fish)', {1}Handler)
])
Where {1} is a variable that would be Cat or Dog or Fish, depending on
what the user wished.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Google App Engine" 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/google-appengine?hl=en
-~----------~----~----~----~------~----~------~--~---