diff options
author | Mike Bayer <mike_mp@zzzcomputing.com> | 2010-12-30 14:22:43 -0500 |
---|---|---|
committer | Mike Bayer <mike_mp@zzzcomputing.com> | 2010-12-30 14:22:43 -0500 |
commit | 426c4356eba28f8bb25b7685e43e49e2ed1131e6 (patch) | |
tree | cbb0ac64aa40905e96005393636a153217d724ba /lib/sqlalchemy/orm/util.py | |
parent | ecf1571ba79a81567428d345a4ec10255305de97 (diff) | |
download | sqlalchemy-426c4356eba28f8bb25b7685e43e49e2ed1131e6.tar.gz |
- removes the "on_" prefix.
Diffstat (limited to 'lib/sqlalchemy/orm/util.py')
-rw-r--r-- | lib/sqlalchemy/orm/util.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/sqlalchemy/orm/util.py b/lib/sqlalchemy/orm/util.py index 4a8b1713c..0cfdc6436 100644 --- a/lib/sqlalchemy/orm/util.py +++ b/lib/sqlalchemy/orm/util.py @@ -63,8 +63,8 @@ def _validator_events(desc, key, validator): def set_(state, value, oldvalue, initiator): return validator(state.obj(), key, value) - event.listen(desc, 'on_append', append, raw=True, retval=True) - event.listen(desc, 'on_set', set_, raw=True, retval=True) + event.listen(desc, 'append', append, raw=True, retval=True) + event.listen(desc, 'set', set_, raw=True, retval=True) def polymorphic_union(table_map, typecolname, aliasname='p_union'): """Create a ``UNION`` statement used by a polymorphic mapper. |