I may be speaking a bit prematurely as I'm only staring in on my REST
layout and on my Pylons project (though I do believe that TG2 also
uses Routes).
Check out the bottom of http://routes.groovie.org/restful.html:
Think what you may be looking for is this (though again I apologize if
I'm off base).

    map.resource('child', 'children',
                 parent_resource=dict(member_name='parent',
                                      collection_name='parents'))

So having defined your recourses this way, parent_id would
automatically pass to child controller that would need it.

Someone correct me if I'm wrong here.



On Aug 22, 11:46 pm, Enrico <[email protected]> wrote:
> Ok, maybe I don't understand the pertinence of you question.
> Sorry, I don't know a better way because that would just be
> vanilla TGController usage.

-- 
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