~ubuntu-branches/debian/jessie/sqlalchemy/jessie

« back to all changes in this revision

Viewing changes to examples/custom_attributes/__init__.py

  • Committer: Package Import Robot
  • Author(s): Piotr Ożarowski, Jakub Wilk, Piotr Ożarowski
  • Date: 2013-07-06 20:53:52 UTC
  • mfrom: (1.4.23) (16.1.17 experimental)
  • Revision ID: package-import@ubuntu.com-20130706205352-ryppl1eto3illd79
Tags: 0.8.2-1
[ Jakub Wilk ]
* Use canonical URIs for Vcs-* fields.

[ Piotr Ożarowski ]
* New upstream release
* Upload to unstable
* Build depend on python3-all instead of -dev, extensions are not built for
  Python 3.X 

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
"""
2
 
Two examples illustrating modifications to SQLAlchemy's attribute management system.
3
 
 
4
 
``listen_for_events.py`` illustrates the usage of :class:`~sqlalchemy.orm.interfaces.AttributeExtension` to intercept attribute events.  It additionally illustrates a way to automatically attach these listeners to all class attributes using a :class:`~sqlalchemy.orm.interfaces.InstrumentationManager`.
5
 
 
6
 
``custom_management.py`` illustrates much deeper usage of :class:`~sqlalchemy.orm.interfaces.InstrumentationManager` as well as collection adaptation, to completely change the underlying method used to store state on an object.   This example was developed to illustrate techniques which would be used by other third party object instrumentation systems to interact with SQLAlchemy's event system and is only intended for very intricate framework integrations.
 
2
Two examples illustrating modifications to SQLAlchemy's attribute management
 
3
system.
 
4
 
 
5
``listen_for_events.py`` illustrates the usage of
 
6
:class:`~sqlalchemy.orm.interfaces.AttributeExtension` to intercept attribute
 
7
events.  It additionally illustrates a way to automatically attach these
 
8
listeners to all class attributes using a
 
9
:class:`.InstrumentationManager`.
 
10
 
 
11
``custom_management.py`` illustrates much deeper usage of
 
12
:class:`.InstrumentationManager` as well as
 
13
collection adaptation, to completely change the underlying method used to
 
14
store state on an object.   This example was developed to illustrate
 
15
techniques which would be used by other third party object instrumentation
 
16
systems to interact with SQLAlchemy's event system and is only intended for
 
17
very intricate framework integrations.
7
18
 
8
19
"""
 
 
b'\\ No newline at end of file'