~ubuntu-branches/debian/sid/sqlalchemy/sid

« back to all changes in this revision

Viewing changes to lib/sqlalchemy/ext/declarative/__init__.py

  • Committer: Package Import Robot
  • Author(s): Piotr Ożarowski
  • Date: 2014-06-27 20:17:13 UTC
  • mfrom: (1.4.28)
  • Revision ID: package-import@ubuntu.com-20140627201713-g6p1kq8q1qenztrv
Tags: 0.9.6-1
* New upstream release
* Remove Python 3.X build tag files, thanks to Matthias Urlichs for the
  patch (closes: #747852)
* python-fdb isn't in the Debian archive yet so default dialect for firebird://
  URLs is changed to obsolete kinterbasdb, thanks to Russell Stuart for the
  patch (closes: #752145)

Show diffs side-by-side

added added

removed removed

Lines of Context:
971
971
                primaryjoin=lambda: Target.id==cls.target_id
972
972
            )
973
973
 
974
 
or alternatively, the string form (which ultmately generates a lambda)::
 
974
or alternatively, the string form (which ultimately generates a lambda)::
975
975
 
976
976
    class RefTargetMixin(object):
977
977
        @declared_attr
1053
1053
 
1054
1054
Above, the ``HasStringCollection`` mixin produces a :func:`.relationship`
1055
1055
which refers to a newly generated class called ``StringAttribute``.  The
1056
 
``StringAttribute`` class is generated with it's own :class:`.Table`
 
1056
``StringAttribute`` class is generated with its own :class:`.Table`
1057
1057
definition which is local to the parent class making usage of the
1058
1058
``HasStringCollection`` mixin.  It also produces an :func:`.association_proxy`
1059
1059
object which proxies references to the ``strings`` attribute onto the ``value``