>From controller -> template, you can use the c (tmpl_context) variable.
With this c variable, you can send anything to template including Class,
list, or dict

>From template -> controller, you can use:
*  request.params. This is typical GET or POST params.
*  or certain url structure, e.g. : /send-stuff/user1/user2/user3/  (you
need to configure routing.py to do this)
*  cookies or session, but of course this is not preferred way to do what
you want.

- Didip -

On Mon, Jul 13, 2009 at 12:56 AM, kumar <[email protected]> wrote:

>
> I tried to pass variables between templates and controllers by using
> global. But when I set the globals in template the function that is
> supposed to be work doesn't work. So i am unable to set the global
> variable in template. The thing is actually I want to implement the
> delete users function from the user table displayed on the web portal.
> it is working fine for one user. But when I select multiple users i
> need to pass the selected users list to the controller and implement
> the delete user function. I am struck here can anyone help me out.
> >
>

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"pylons-discuss" 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/pylons-discuss?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to