From: Jason Kirtland Date: Wed, 1 Apr 2009 02:04:10 +0000 (+0000) Subject: Reverting property workaround X-Git-Tag: rel_0_6_6~235 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=82a9172c4747c37b0b555a81f656586f7b52f81c;p=thirdparty%2Fsqlalchemy%2Fsqlalchemy.git Reverting property workaround --- diff --git a/lib/sqlalchemy/orm/attributes.py b/lib/sqlalchemy/orm/attributes.py index aa012f2775..da071d90a0 100644 --- a/lib/sqlalchemy/orm/attributes.py +++ b/lib/sqlalchemy/orm/attributes.py @@ -139,11 +139,10 @@ class QueryableAttribute(interfaces.PropComparator): def __str__(self): return repr(self.parententity) + "." + self.property.key -# @property -# def property(self): -# return self.comparator.property - -QueryableAttribute.property = property(lambda self:self.comparator.property) + @property + def property(self): + return self.comparator.property + class InstrumentedAttribute(QueryableAttribute): """Public-facing descriptor, placed in the mapped class dictionary."""