Hi

grid_clientes

should be outside of your controller, so it is instanciated only once



In the index method of your controller

    @expose('ateneatg2.templates.clientes.index')
    def index(self, q='', id_=''):
        if q:
            tmpl_context.grid = grid_tv

        elif id_:
            redirect('/clientes/operar', id_=id_)
        return dict()

then in your template

${tmpl_context.grid()}


this is how I use it without problem

+ check this

http://blog.axant.it/archives/352


HTH

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

Reply via email to