[Grok-dev] Saving multiple objects from one AddForm

Darryl Cousins darryl at darrylcousins.net.nz
Fri Jun 29 04:39:23 EDT 2007


Hi

On Fri, 2007-06-29 at 02:04 -0300, Luciano Ramalho wrote:
> On 6/29/07, Luciano Ramalho <luciano at ramalho.org> wrote:
> > Thanks, Darryl. I added the form_fields declaration, but now what
> > happens is that only the last book in the collection has its fields
> > filled, and all the others are created empty like before.
> 
> Actually what happened was: all books were created empty, except one
> which got filled with data from the last in the collection, but got
> the isbn13 of the first book in the collection as it's __name__. Maybe
> this little experiment is trying to teach me something...

I had another look at the code but I can't help. I would be debugging by
examining everything inside inside the loop. applyData returns `a
dictionary of interfaces and their fields that were changed` - maybe
look at that too.

Best regards,
Darryl

> 
> Cheers,
> 
> Luciano
> _______________________________________________
> Grok-dev mailing list
> Grok-dev at zope.org
> http://mail.zope.org/mailman/listinfo/grok-dev



More information about the Grok-dev mailing list