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

Diedrich Vorberg orm-devel@mailman.tux4web.de
Sat, 11 Jan 2003 00:19:44 +0100


Hi Ross,

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

I've writen the many2manyList.__delslice__() method and did a basic 
sanity test.

  dbobj.many2manyList.append(new_object)

and

  del dbobj.many2manyList[dbobj.many2manyList(new_object)]

should work now. Both lines will effect the data in memory as well as 
create and execute proper SQL. Please don't hesitate to contact me if 
there's anything wrong :-)

Diedrich

-- 
           _..._                            Diedrich Vorberg
         .'     '.
        /  _   _  \                         http://www.tux4web.de
        | (o)_(o) |                         info@tux4web.de
         \(     ) /            .---.
         //'._.'\ \           /     \       Internet Dienstleistungen
        //   .   \ \          \.@-@./       und 'Consulting'.
       ||   .     \ \         /`\_/`\
       |\   :     / |        //  _  \\      Linux Rules!
       \ `) '   (`  /_      | \     )|_
     _)``".____,.'"` (_    /`\_`>  <_/ \
     )     )'--'(     (    \__/'---'\__/
      '---`      `---`