I found that example in an old version of the documentation (which was not working) and didn't find it in the latest one. It works well.
In the example you pointed me to, the _before() method is used to store the object in the tmpl_context. Which method is more accurate for my case ? _visit or _before ? Le vendredi 12 septembre 2014 16:47:41 UTC+2, Alessandro Molina a écrit : > > There is an example on > http://turbogears.readthedocs.org/en/latest/turbogears/restdispatch.html?highlight=rest#nesting-resources-with-restcontrollers > > <http://www.google.com/url?q=http%3A%2F%2Fturbogears.readthedocs.org%2Fen%2Flatest%2Fturbogears%2Frestdispatch.html%3Fhighlight%3Drest%23nesting-resources-with-restcontrollers&sa=D&sntz=1&usg=AFQjCNFOtT5zMJn3DEgWcTOsvaKTkiA00A> > > If you are using a recent TurboGears version (2.3.3+) you can even use the > _visit method of controller which is executed each time you pass though a > controller during the dispatch to store the workspace inside request so > that it will be available in users controller: > http://turbogears.readthedocs.org/en/latest/turbogears/objectdispatch.html?highlight=_visit#dispatching-entry-points > > <http://www.google.com/url?q=http%3A%2F%2Fturbogears.readthedocs.org%2Fen%2Flatest%2Fturbogears%2Fobjectdispatch.html%3Fhighlight%3D_visit%23dispatching-entry-points&sa=D&sntz=1&usg=AFQjCNG3AVg1rZVXr95qDfxR2bwUJJ7k8w> > > -- You received this message because you are subscribed to the Google Groups "TurboGears" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at http://groups.google.com/group/turbogears. For more options, visit https://groups.google.com/d/optout.

