I would like to use named groups in the regular expressions passed on
to the webapp.WSGIApplication constructor.
The main reason is that I need to pass HTTP parameters embedded in the
URL in a different order than the positional parameters in the
corresponding get() method of the RequestHandler class.

Example:
web_application = webapp.WSGIApplication([
  (r"/xhtml/(?P<output>[^/]+)/wall/(?P<user_key>[^/]+)",
messaging.WallPage),
])

The output parameter represent the format of the page.
The user_key parameter is an identifier for a particular application
user.

The signature of the get method  of the RequestHandler WallPage would
be the following:
def get(self,user_key, output="iphone")

Even though I'm using named groups in the URL mapping, regexp matching
groups are always passed as positional parameters to the get method,
so they end up being swapped.

Is it simply not supported or am I doing something wrong?

Thank you


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To post to this group, send email to google-appengine@googlegroups.com
To unsubscribe from this group, send email to 
google-appengine+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to