GenghisOne, I don't have the code right now at my desk but I will upload the code later today.
Regards, Pankaj Vishwani On Jul 1, 6:22 pm, GenghisOne <[email protected]> wrote: > Pankaj > > I, for one, would very much appreciate seeing your code. > > Thx much. > > On Jul 1, 5:50 pm, Pankaj Vishwani <[email protected]> wrote: > > > > > One way to do this is the following: > > > - Create a table with URL and fileName as two fields. > > - Replace ('/', Page_Main) by ('/.*', Page_Main) > > - In Page_Main.py do the query and get the html fileName for the url > > you just got and then render that HTML page. > > > If you want the entire code let me know and I will post that here. > > > Regards, > > Pankaj Vishwani > > > On Jul 1, 9:57 am, alexbf <[email protected]> wrote: > > > > Hello, > > > > is it possible to dynamically add urls/methods through the > > > WSGIApplication object? > > > > Right now I have all the URLs and methods hardcoded in my main() > > > > def main(): > > > application = webapp.WSGIApplication([('/', Page_Main), > > > > > > ('/pageone', Page_One), > > > > > > ('/pagetwo', Page_Two), > > > > > > ('/pagethree', Page_Three)], > > > > > > debug=True) > > > > Let's say I have a table that contains URL/HTML code pairs... is it > > > possible to do something like this? > > > > def main(): > > > application = webapp.WSGIApplication(debug=True) > > > > #Load URLs from table --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
