I have a hybrid property with a custom setter defined for a one-to-many relationship on one of my classes, and for assignments using the = operator, it works fine. I can assign a new list of objects to that property, and it calls the setter to handle the details.
But when I use the append() method on the list, the setter is not called. How do I change this behavior? I would like to be able to append, so I don't have to do silly things like obj.property = obj.property + [new]. That's not very Pythonic. Thanks, Avi Blackmore -- SQLAlchemy - The Python SQL Toolkit and Object Relational Mapper http://www.sqlalchemy.org/ To post example code, please provide an MCVE: Minimal, Complete, and Verifiable Example. See http://stackoverflow.com/help/mcve for a full description. --- You received this message because you are subscribed to the Google Groups "sqlalchemy" 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 https://groups.google.com/group/sqlalchemy. For more options, visit https://groups.google.com/d/optout.
