Are You using default AdminController? In this controller editing the parent means that you add/delete the ingredients only (of course edit properties such as "name", "description", etc). So when you use recipie.ingredients relation, you get all ingredient elements related to this recipie. Default AdminController does not support "edit ingredients related to actual recipie". If you need it, you should write it. I use manualy written forms for such things. It does not take much time to write forms. Also you may write own CrudRestController (I do not use it only because had no time to fully learn it, but as I know this thing is strong).
пятница, 7 июня 2013 г., 2:04:02 UTC+4 пользователь Craig Small написал: > > On Wed, Jun 05, 2013 at 08:56:25PM +0200, Alessandro Molina wrote: > > You mean editing of the subdocuments directly from the parent > document > > form? Or did you need something else? > Sub items rather than sub documents. > So if you have a recipe parent model, and a ingredient child model > editing the parent means you add/delete/edit the ingredients for that > recipie. > > The only way I could see it working at the moment is you have > /admin/recipies/42/edit for the recipies metadata and > /admin/ingredients/something?recipie_id=42 > on a second screen. > > It's a pretty generic and common thing, I thought someone might of > solved it already. > > - Craig > -- > Craig Small VK2XLZ http://enc.com.au/ csmall at : enc.com.au > Debian GNU/Linux http://www.debian.org/ csmall at : debian.org > GPG fingerprint: 5D2F B320 B825 D939 04D2 0519 3938 F96B DF50 FEA5 > -- 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?hl=en. For more options, visit https://groups.google.com/groups/opt_out.

