diff options
author | Mike Bayer <mike_mp@zzzcomputing.com> | 2019-10-05 21:28:48 -0400 |
---|---|---|
committer | Mike Bayer <mike_mp@zzzcomputing.com> | 2019-10-06 19:17:35 -0400 |
commit | 08757f05e027ead82a24cd8b7d4a3e90c5b01b59 (patch) | |
tree | 33670c405892d449d298e56807ef7be6a3f74adc /lib/sqlalchemy/orm/attributes.py | |
parent | c6abd4766abb0396c9bf532d81d16226b970a35a (diff) | |
download | sqlalchemy-08757f05e027ead82a24cd8b7d4a3e90c5b01b59.tar.gz |
Remove deprecated extension and similar classes
All long-deprecated "extension" classes have been removed, including
MapperExtension, SessionExtension, PoolListener, ConnectionProxy,
AttributExtension. These classes have been deprecated since version 0.7
long superseded by the event listener system.
Fixes: #4638
Change-Id: If4156d4956b10847bd93b6408a7c52ff5168db9b
Diffstat (limited to 'lib/sqlalchemy/orm/attributes.py')
-rw-r--r-- | lib/sqlalchemy/orm/attributes.py | 23 |
1 files changed, 0 insertions, 23 deletions
diff --git a/lib/sqlalchemy/orm/attributes.py b/lib/sqlalchemy/orm/attributes.py index 117dd4cea..1466f5f47 100644 --- a/lib/sqlalchemy/orm/attributes.py +++ b/lib/sqlalchemy/orm/attributes.py @@ -465,7 +465,6 @@ class AttributeImpl(object): callable_, dispatch, trackparent=False, - extension=None, compare_function=None, active_history=False, parent_token=None, @@ -490,19 +489,6 @@ class AttributeImpl(object): if True, attempt to track if an instance has a parent attached to it via this attribute. - :param extension: - a single or list of AttributeExtension object(s) which will - receive set/delete/append/remove/etc. events. - The event package is now used. - - .. deprecated:: 1.3 - - The :paramref:`.AttributeImpl.extension` parameter is deprecated - and will be removed in a future release, corresponding to the - "extension" parameter on the :class:`.MapperProprty` classes - like :func:`.column_property` and :func:`.relationship` The - events system is now used. - :param compare_function: a function that compares two values which are normally assignable to this attribute. @@ -545,13 +531,6 @@ class AttributeImpl(object): else: self.accepts_scalar_loader = self.default_accepts_scalar_loader - # TODO: pass in the manager here - # instead of doing a lookup - attr = manager_of_class(class_)[key] - - for ext in util.to_list(extension or []): - ext._adapt_listener(attr, ext) - if active_history: self.dispatch._active_history = True @@ -1075,7 +1054,6 @@ class CollectionAttributeImpl(AttributeImpl): dispatch, typecallable=None, trackparent=False, - extension=None, copy_function=None, compare_function=None, **kwargs @@ -1086,7 +1064,6 @@ class CollectionAttributeImpl(AttributeImpl): callable_, dispatch, trackparent=trackparent, - extension=extension, compare_function=compare_function, **kwargs ) |