[Sqlalchemy-tickets] [sqlalchemy] #2240: Function to get a list of class methods that are decorated
Brought to you by:
zzzeek
From: sqlalchemy <mi...@zz...> - 2011-07-30 10:37:30
|
#2240: Function to get a list of class methods that are decorated with @validates. --------------------------------------+------------------------------------- Reporter: guest | Owner: zzzeek Type: enhancement | Status: new Priority: low | Milestone: 0.7.2 Component: orm | Severity: trivial - <10 minutes Keywords: orm @validates validator | Status_field: needs review --------------------------------------+------------------------------------- In the attached patch file there is a new mapper method: 'iterate_validators'. This function give to the user the capability to create a list of mapped class methods that are decorated with @validates. I added a test in test_mapper.py -- Ticket URL: <http://www.sqlalchemy.org/trac/ticket/2240> sqlalchemy <http://www.sqlalchemy.org/> The Database Toolkit for Python |