pombreda / formalchemy

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

With SQLAlchemy 0.6, non-sqlalchemy forms doesn't work #150

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Install SQLAlchemy 0.6
2. Create a fieldset based on a non-sqlalchemy class
3. Check result in browser

What is the expected output? What do you see instead?
Expected: A working instance of FieldSet
Result: Because in SQLAlchemy 0.6 a different exception is raised for unmapped 
instances, formalchemy fails.

Patch:
https://code.google.com/r/info-formalchemy-nonsqlalchemy-fix/source/browse

Original issue reported on code.google.com by kutverh...@gmail.com on 18 Oct 2010 at 7:33

GoogleCodeExporter commented 9 years ago
Your patch does not fix the issue, you need to change line 494 in base.py as 
well

Original comment by andrew.c...@gmail.com on 21 Oct 2010 at 1:10

GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago
Updated patch :)

Original comment by kutverh...@gmail.com on 21 Oct 2010 at 1:57

GoogleCodeExporter commented 9 years ago
Hello, 

I have the same problem with a Grid, I get the 

⇝ UnmappedClassError: Class 'main.Host' is not mapped

with this class: 
class Host(object):
    Name = Field()
    MacAddr = Field()
    IpAddr = Field()

Original comment by joseph.p...@gmail.com on 9 Nov 2010 at 10:32

GoogleCodeExporter commented 9 years ago
Clone merged.

Joseph, your comment does not help. Please provide a patch or at least the full 
traceback.

Original comment by gael.pas...@gmail.com on 11 Nov 2010 at 12:23