New issue 165 by lionface...@gmail.com: synonyms not working?
http://code.google.com/p/formalchemy/issues/detail?id=165
What steps will reproduce the problem?
1. See unit tests.
What is the expected output? What do you see instead?
I expect the model's 'foo' property to have been set via the getter/setter
I define using SQLA's synonym functionality. Also seems to not work with
the newish hybrid_property decorator.
What version of the product are you using? On what operating system?
SQLAlchemy-0.7.2
FormAlchemy-1.4.1
Python 2.6.6
Ubuntu 10.10
Please provide any additional information below.
See the attached unit tests.
Attachments:
formalchemy_problems.py 1.8 KB
I'm getting the same problem. When I try to set a hybrid_property
of "description" which attaches to a declarative table definition
of "_description", I get this error:
File "/opt/local/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/formalchemy/forms.py",
line
773, in __getattr__
raise AttributeError(attrname)
AttributeError: description
I've tried to find out why this doesn't work, and I think it's because,
FieldSet.__init__'s calls to class_mapper(cls).iterate_properties don't
return hybrid properties.
Hi guys, I added a similar ticket to the current bug tracker at github
(plus I linked to a reported solution for the problem):
https://github.com/FormAlchemy/formalchemy/issues/20