Issue 165 in formalchemy: synonyms not working?

10 views
Skip to first unread message

forma...@googlecode.com

unread,
Sep 1, 2011, 2:06:14 PM9/1/11
to forma...@googlegroups.com
Status: New
Owner: ----

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

forma...@googlecode.com

unread,
Sep 12, 2011, 6:28:00 PM9/12/11
to forma...@googlegroups.com

Comment #1 on issue 165 by coredump...@gmail.com: synonyms not working?
http://code.google.com/p/formalchemy/issues/detail?id=165

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.

forma...@googlecode.com

unread,
Oct 28, 2011, 3:55:36 PM10/28/11
to forma...@googlegroups.com

Comment #2 on issue 165 by Mariano....@gmail.com: synonyms not working?
http://code.google.com/p/formalchemy/issues/detail?id=165

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


Reply all
Reply to author
Forward
0 new messages