As Ikai said, you can do this when you define your app. Not in your YAML mapping. For an example of exactly what you are asking for see, http://code.google.com/appengine/docs/python/tools/webapp/running.html
Robert On Jul 27, 2010, at 14:47, "Ikai L (Google)" <[email protected]> wrote: > Can you parse the URI in the request object and extract the variables you > need? I'm fairly certain the YAML file processing doesn't work that way. > > On Tue, Jul 27, 2010 at 7:04 AM, Zippoxer <[email protected]> wrote: > I'm trying to do something like this: > > - url: /viewpost/(.*) > script: asklogin.py?id=\1 > > So If I type the URL *http://localhost:8080/viewpost/302* It will load > the script *asklogin.py* and send a get variable: id = 302. > What I did in the code above, doesn't work. Any other solution? > > -- > 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. > > > > > -- > Ikai Lan > Developer Programs Engineer, Google App Engine > Blog: http://googleappengine.blogspot.com > Twitter: http://twitter.com/app_engine > Reddit: http://www.reddit.com/r/appengine > > -- > 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. -- 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.
