Just use the following app.yaml lines

- url: /news-wsj-.*
  script: news.py

and filter in the main program for the specific version

application = webapp.WSGIApplication(
      [('/news-wsj-biz', BizNews),
       ('/news-wsj-popular', PopularNews),
      ],
      debug=False)

These handlers can call a function with the required arguments

3D

2008/9/16 cebuys <[EMAIL PROTECTED]>:
>
> Trying to figure if this is possible to implement within app.yaml
>
> I currently have this in my app.yaml file:
>
> ...
> - url: /news
>  script: news.py
> ...
>
> My script is accessed using a URL like:
>
> http://myapp.appspot.com/news?c=1&n=2
>
> I tried this but it did not work (the arguments are ignored):
>
> ...
> - url: /news-wsj-biz
>  script: news.py?c=1&n=2
>
> - url: /news-wsj-popular
>  script: news.py?c=1&n=1
> ...
>
> Can I have a semi-static(?) URL mapping that maps to a script with
> dynamic arguments like the above non-functional entry in app.yaml?
>
> Just one script (news.py) but search engine friendly URLs and short of
> creating additional similar scripts like news_wsj_biz.py etc.
>
> -nick
> >
>

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

Reply via email to