*I think you found the general idea - request.args is how the view passes values back to the controller;* *To pass values TO the view, you do this in the controller "return" - the thing to remember is the flow of calls is:*
*request into your webserver (e.g. cherrypy, apache chain, etc.)* *web2py parses request, and loads the target apps model definitions, then calls the controller (the target of the request);* The controller "returns" a dict, which web2py main then passes on the the view, and the request ends with a reply to the client. So, to get the "id" variable in the view template loaded from the controller, you would (for example) do something like this: def myaction_controller(): .... return dict( stuff=my.stuff, id=myselect.id ) and then in the view, something like this would show it ... <h1> Here's your stuff: {{=id #note: that is the left side of the dict which was passed to view}} </h1> ... I think this is what you were asking (and you can safely ignore the "routes.py" references from others for this...). Regards, - Yarko On Thu, Oct 22, 2009 at 9:54 PM, Wiiboy <jordon...@gmail.com> wrote: > > Hehe, found it in the Django-to-Web2py tutorial video: request.args > > > --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "web2py-users" 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 -~----------~----~----~----~------~----~------~--~---