Hey people, I am struggling with the following: I have created controllers for each data object in my app. Each controller contains a show() method, and a list() method (among others). I would like to include the form generated by the list() method of some controllers in the show() method of other controllers according to the data relations. For instance I have a Location controller and a Sample data object (Elixir). Each Location has a samples attribute which contains all the samples of the Location. Now in the LocationController.show() page I want to include the SampleController.list() form for the samples belonging to this Location. How should I proceed to do this? I could send a separate loadJSONDoc request client-side to include the form of the samples/list controller, or I couold do it server side in the controller. The problem with the first is I would like to prevent myself from going through the nightmare of javascript programming if I can. The problem with the latter is I get in to troule when calling the SampleController.list() method from LocationController.show(). I seem only to be able to get a string containing HTML instead of the actual form object. I am stuck.. Hope someone can help. Cheers,
Dolf. --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---

