pombreda / formalchemy

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

No Session found: pylons admin #118

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. paster create -t pylons_fa myproject
2. create some models
3. try to add some object, fill it with data that souldn't validate.

What is the expected output? What do you see instead?
same form with validation errors is an expected output. 'No Session found'
exception raised instead.

What version of the product are you using? On what operating system?
openSuSE 11.1, Python 2.6, Pylons 0.9.7, SQLAlchemy 0.5.6, FormAlchemy 1.2.3.

Please provide any additional information below.
I guess I fixed the issue in formalchemy/ext/pylons/admin.py:131. And here
is the diff:

131c131,134
<             c.fs = c.fs.bind(data=request.params)

---
>             if not id:
>                 c.fs = c.fs.bind(data=request.params, session=S)
>             else:
>                 c.fs = c.fs.bind(data=request.params)

Original issue reported on code.google.com by mihail.l...@gmail.com on 24 Sep 2009 at 12:18

Attachments:

GoogleCodeExporter commented 9 years ago
applied, thanks

Original comment by gael.pas...@gmail.com on 26 Sep 2009 at 10:53