hmmmm well there's not a public API for that. Right now (and with no immediate plans to change it) the function should have an attribute called "__sa_validators__" which is a list of attribute names. Ultimately there are attribute events assigned though the event API doesn't have a documented introspection interface (yet) either.
On Jul 28, 2011, at 1:27 PM, Stefano Fontanelli wrote: > > Hi folks, > I'm working on a project which uses SQLAlchemy as ORM layer and I have a > question about @validates decorator. > > How can I get a list of functions (in each entity of my model) that are > decorated using sqlalchemy.orm.validates decorator? > > > Regards, > Stefano. > > > -- > You received this message because you are subscribed to the Google Groups > "sqlalchemy" group. > To post to this group, send email to [email protected]. > To unsubscribe from this group, send email to > [email protected]. > For more options, visit this group at > http://groups.google.com/group/sqlalchemy?hl=en. > -- You received this message because you are subscribed to the Google Groups "sqlalchemy" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/sqlalchemy?hl=en.
