I have an application in which I need to have the view rendered by a controller be specified using a parameter to that controller.
I believe I could do the following based on what I've dug up in this forum: def index(): try: response.view='default/' + request.args[0] # eg. 'indexview2.html' except: response.view='default/index.html' return dict(message=T('Hello World')) Ideally, as I come up with new view templates, I would like to upload them to the appropriate directory, allowing me to request an alternate view by simply passing the filename of the new view to this controller. The problem is that I am running my application on Google App Engine, therefore to upload new views I would have to update my application, which is not practical if I am frequently adding new views. The ideal solution would be to store the new view in a text or blob field within a table of the database and then be able to use that text/ blob/string as the input to response.view instead of a file. Is this at all possible under web2py's current template processing (processing a view from a blobl/text/string instead of file). --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "web2py Web Framework" group. To post to this group, send email to web2py@googlegroups.com To unsubscribe from this group, send email to web2py+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/web2py?hl=en -~----------~----~----~----~------~----~------~--~---