[orm-devel] orm/dbclass.py typo and a question on one2many deletions

Eric Walstad orm-devel@mailman.tux4web.de
Wed, 08 Jan 2003 08:05:51 -0800


Hi Diedrich,

Diedrich Vorberg wrote:
>>Also, I'm having some trouble figuring out how to deal with a one2many 
>>relationship.  I've got:
>>
>>>>>invoice.invoice_line_items[0].delete()
> 
> 
> This one should read
> 
>    del invoice.invoice_line_items[0]
> 
> I have to admin that one2manyList's __delslice__ method was not 
> tested at all and that there was no __delitem__ method. I've added 
> these and did some rudimentary testing. Check out the latest CVS!
Cool!  I'll check it out now and give the new methods a try.

> BTW: I'm going to write the many2manyList __del*__ methods some time
> soon, they should be available shortly.
Excellent!  I'm just getting started on building a gui interface to a 
many2many relationship.

Thanks again for your efforts!

Eric.