On Mon, Feb 07, 2011 at 01:32:52PM -0500, Michael Bayer wrote: > >> Otherwise you can append your AttributeExtension into the listeners > >> collection on the attribute, I'd have to check the source of attributes.py > >> to recall the exact name of the collection. > > > > a hint here would be appreciated. > > heh, "check attributes.py" is a hint. The actual answer is, > MyClass.someattribute.impl.extensions.append(my_extension).
correct! so thanks for the actual answer! ;-) It seems that .impl only exists after I instantiated at leat 1 object, correct? class User(Base): __tablename__ = 'user' id = Column(Integer, primary_key=True) name = Column(String(30), nullable=False) In [1]: print User.name.impl None In [2]: User() Out[2]: <__main__.User object at 0x8a9cf6c> In [3]: User.name.impl Out[3]: <sqlalchemy.orm.attributes.ScalarAttributeImpl object at 0x8aa00cc> sandro *:-) -- 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+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/sqlalchemy?hl=en.