zzzeek / test_sqlalchemy

0 stars 0 forks source link

cant call Class.propname.property on a Synonym #965

Closed sqlalchemy-bot closed 15 years ago

sqlalchemy-bot commented 16 years ago

Issue created by Michael Bayer (zzzeek)


raises an error:

Traceback (most recent call last):
  File "test.py", line 97, in <module>
    Values.a_1._comparator = AComparator(Values.a_1.property) #class_mapper(Values).get_property('a_1'))
  File "/Users/classic/dev/sqlalchemy/lib/sqlalchemy/orm/mapper.py", line 572, in __getattribute__
    return getattr(getattr(cls, clskey), key)
  File "/Users/classic/dev/sqlalchemy/lib/sqlalchemy/orm/attributes.py", line 66, in _property
    return class_mapper(self.impl.class_).get_property(self.impl.key)
AttributeError: 'ProxyImpl' object has no attribute 'class_'
sqlalchemy-bot commented 10 years ago

Michael Bayer (zzzeek) wrote:


Removing milestone: 0.5.xx (automated comment)

sqlalchemy-bot commented 15 years ago

Michael Bayer (zzzeek) wrote:


this works as of release 0.5.0 since proxied_attribute_factory.Proxy routes __getattr__() to the PropComparator after the user-defined descriptor.

sqlalchemy-bot commented 16 years ago

Michael Bayer (zzzeek) wrote:


sqlalchemy-bot commented 10 years ago

Changes by Michael Bayer (zzzeek): removed "0.5.xx" milestone

sqlalchemy-bot commented 15 years ago

Changes by Michael Bayer (zzzeek): set state to "resolved"

sqlalchemy-bot commented 16 years ago

Changes by Michael Bayer (zzzeek): changed milestone from "0.4.7" to "0.5.xx"