[sqlalchemy] Re: Constructor and destructor of mapped objects

2011-04-26 Thread Dmitry Guryanov
Thanks a lot, this is exactly what i was looking for ! -- Dmitry Guryanov -- You received this message because you are subscribed to the Google Groups sqlalchemy group. To post to this group, send email to sqlalchemy@googlegroups.com. To unsubscribe from this group, send email to sqlalchemy

[sqlalchemy] Constructor and destructor of mapped objects

2011-04-25 Thread Dmitry Guryanov
Hello, i'm writing web-based photo gallery using pylons have the following question: Each photo in gallery have one row in 'photos' table and files on disk (original file and preview). I have Photo class, mapped to photos table: class Photo(Base): __tablename__ = photos id =