diff options
| author | Mike Bayer <mike_mp@zzzcomputing.com> | 2007-12-01 23:00:05 +0000 |
|---|---|---|
| committer | Mike Bayer <mike_mp@zzzcomputing.com> | 2007-12-01 23:00:05 +0000 |
| commit | c6d01a56e168f1c70461c2684c70a2c5967c4814 (patch) | |
| tree | 513ee62c991b99542dd6c6cf846dbed2c1503b71 /lib/sqlalchemy/orm/interfaces.py | |
| parent | ebb4b02c2136b3a71989867a52665e34bdfd4236 (diff) | |
| download | sqlalchemy-c6d01a56e168f1c70461c2684c70a2c5967c4814.tar.gz | |
- several ORM attributes have been removed or made private:
mapper.get_attr_by_column(), mapper.set_attr_by_column(),
mapper.pks_by_table, mapper.cascade_callable(),
MapperProperty.cascade_callable(), mapper.canload()
- refinements to mapper PK/table column organization, session cascading,
some naming convention work
Diffstat (limited to 'lib/sqlalchemy/orm/interfaces.py')
| -rw-r--r-- | lib/sqlalchemy/orm/interfaces.py | 15 |
1 files changed, 6 insertions, 9 deletions
diff --git a/lib/sqlalchemy/orm/interfaces.py b/lib/sqlalchemy/orm/interfaces.py index aa0b2dcc2..815ea8ceb 100644 --- a/lib/sqlalchemy/orm/interfaces.py +++ b/lib/sqlalchemy/orm/interfaces.py @@ -319,18 +319,15 @@ class MapperProperty(object): """ raise NotImplementedError() - + def cascade_iterator(self, type, object, recursive=None, halt_on=None): - """return an iterator of objects which are child objects of the given object, - as attached to the attribute corresponding to this MapperProperty.""" + """iterate through instances related to the given instance along + a particular 'cascade' path, starting with this MapperProperty. - return [] - - def cascade_callable(self, type, object, callable_, recursive=None, halt_on=None): - """run the given callable across all objects which are child objects of - the given object, as attached to the attribute corresponding to this MapperProperty.""" + see PropertyLoader for the related instance implementation. + """ - return [] + return iter([]) def get_criterion(self, query, key, value): """Return a ``WHERE`` clause suitable for this |
