pombreda / formalchemy

Automatically exported from code.google.com/p/formalchemy
MIT License
0 stars 0 forks source link

Dictionary attribute/relation support on FormAlchemy #143

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Create a SQLAlchemy relation that's represented as a dictionary
2. Attempt to use FormAlchemy

What version of the product are you using? On what operating system?

I'm using FormAlchemy 1.3.4 with Python 2.6 on Linux.

The basic problem is this. If you create a SQLAlchemy schema where a relation 
is represented as a dictionary, for example the vertical attribute example, 
FormAlchemy is confused as represents the dictionary as a collection.

Here's an example of the schema we're talking about: 
http://www.sqlalchemy.org/docs/examples.html#module-vertical

In that scenario, model.facts is a dictionary. But FormAlchemy assumes it's a 
list.

Original issue reported on code.google.com by kkin...@gmail.com on 28 Jun 2010 at 10:54