[Sqlalchemy-commits] sqlalchemy: the "property" argument here is not used
Brought to you by:
zzzeek
From: <co...@sq...> - 2011-05-31 03:23:06
|
details: http://hg.sqlalchemy.org/sqlalchemy/sqlalchemy/rev/7f666c30a3e2 changeset: 7636:7f666c30a3e2 user: zzzeek date: Mon May 30 10:52:01 2011 -0400 description: the "property" argument here is not used Subject: sqlalchemy: hey, we don't need this. details: http://hg.sqlalchemy.org/sqlalchemy/sqlalchemy/rev/065bdfc52c63 changeset: 7637:065bdfc52c63 user: zzzeek date: Mon May 30 14:20:55 2011 -0400 description: hey, we don't need this. diffstat: lib/sqlalchemy/orm/attributes.py | 13 +------------ lib/sqlalchemy/orm/properties.py | 2 -- 2 files changed, 1 insertions(+), 14 deletions(-) diffs (49 lines): diff -r b7e21789ca22 -r 065bdfc52c63 lib/sqlalchemy/orm/attributes.py --- a/lib/sqlalchemy/orm/attributes.py Sun May 29 13:50:41 2011 -0400 +++ b/lib/sqlalchemy/orm/attributes.py Mon May 30 14:20:55 2011 -0400 @@ -588,17 +588,6 @@ uses_objects = True supports_population = True - def __init__(self, class_, key, callable_, dispatch, - trackparent=False, extension=None, copy_function=None, - **kwargs): - super(ScalarObjectAttributeImpl, self).__init__( - class_, - key, - callable_, dispatch, - trackparent=trackparent, - extension=extension, - **kwargs) - def delete(self, state, dict_): old = self.get(state, dict_) self.fire_remove_event(state, dict_, old, self) @@ -1222,7 +1211,7 @@ return manager[key] def register_descriptor(class_, key, comparator=None, - parententity=None, property_=None, doc=None): + parententity=None, doc=None): manager = manager_of_class(class_) descriptor = InstrumentedAttribute(class_, key, comparator=comparator, diff -r b7e21789ca22 -r 065bdfc52c63 lib/sqlalchemy/orm/properties.py --- a/lib/sqlalchemy/orm/properties.py Sun May 29 13:50:41 2011 -0400 +++ b/lib/sqlalchemy/orm/properties.py Mon May 30 14:20:55 2011 -0400 @@ -102,7 +102,6 @@ self.key, comparator=self.comparator_factory(self, mapper), parententity=mapper, - property_=self, doc=self.doc ) @@ -277,7 +276,6 @@ self.key, comparator=self.comparator_factory(self, mapper), parententity=mapper, - property_=self, doc=self.doc, ) |