diff options
author | Mike Bayer <mike_mp@zzzcomputing.com> | 2009-02-11 18:23:35 +0000 |
---|---|---|
committer | Mike Bayer <mike_mp@zzzcomputing.com> | 2009-02-11 18:23:35 +0000 |
commit | 60dd7842f012c7aaaa534ce22be06b0db25d86df (patch) | |
tree | 8272b3635b445bcd2ddb2a7397eae3df41d546ca /lib/sqlalchemy/orm/interfaces.py | |
parent | a9817ae244266a773cd6565cb61adccef7221cd2 (diff) | |
download | sqlalchemy-60dd7842f012c7aaaa534ce22be06b0db25d86df.tar.gz |
- Added "post_configure_attribute" method to InstrumentationManager,
so that the "listen_for_events.py" example works again.
[ticket:1314]
Diffstat (limited to 'lib/sqlalchemy/orm/interfaces.py')
-rw-r--r-- | lib/sqlalchemy/orm/interfaces.py | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/lib/sqlalchemy/orm/interfaces.py b/lib/sqlalchemy/orm/interfaces.py index 7e5427808..3b7507def 100644 --- a/lib/sqlalchemy/orm/interfaces.py +++ b/lib/sqlalchemy/orm/interfaces.py @@ -855,7 +855,12 @@ class LoaderStrategy(object): return fn class InstrumentationManager(object): - """User-defined class instrumentation extension.""" + """User-defined class instrumentation extension. + + The API for this class should be considered as semi-stable, + and may change slightly with new releases. + + """ # r4361 added a mandatory (cls) constructor to this interface. # given that, perhaps class_ should be dropped from all of these @@ -878,6 +883,9 @@ class InstrumentationManager(object): def instrument_attribute(self, class_, key, inst): pass + def post_configure_attribute(self, class_, key, inst): + pass + def install_descriptor(self, class_, key, inst): setattr(class_, key, inst) |