On Feb 7, 2011, at 1:29 PM, Alessandro Dentella wrote: > On Mon, Feb 07, 2011 at 10:26:18AM -0500, Michael Bayer wrote: >> Its easier to do in 0.7 where you just say >> event.listen(MyObject.attribute, "append", fn), >> any time you want. Though we haven't implemented "remove" yet. >> I'd wait for the 0.7 betas if possible. > > nice!, but it's not an option to migrate to 0.7 right now. I'll consider it > for the future. > >> 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). -- 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.