11 messages in com.googlegroups.google-appengine[google-appengine] Re: Registering ne...
FromSent OnAttachments
Peter Svensson26 Apr 2008 10:02 
Brett Morgan26 Apr 2008 16:22 
Peter Svensson26 Apr 2008 16:26 
Brett Morgan26 Apr 2008 16:30 
Peter Svensson26 Apr 2008 16:34 
Roberto Saccon26 Apr 2008 19:22 
Peter Svensson27 Apr 2008 04:14 
Roberto Saccon27 Apr 2008 05:19 
Ben the Indefatigable27 Apr 2008 05:47 
Peter Svensson27 Apr 2008 05:48 
Ben the Indefatigable27 Apr 2008 06:18 
Subject:[google-appengine] Re: Registering new action url on the fly?
From:Peter Svensson (psve@gmail.com)
Date:04/27/2008 05:48:42 AM
List:com.googlegroups.google-appengine

Ben, thanks! This much more simple than I had anticipated. Thanks a bunch.

Cheers, PS

On Sun, Apr 27, 2008 at 2:47 PM, Ben the Indefatigable <bcbr@gmail.com> wrote:

Peter, the way I took your question was "how do I have one handler service multiple URLs. In other words

class DynPage(webapp.RequestHandler): def get(self): pagename = self.request.path

def main(): application = webapp.WSGIApplication( [ ('/', MainPage), ('/sign', Guestbook), ('/.*', DynPage) ], debug=True)

Then pagename is "/whatever" and you use that as the basis for how you do your page.