pombreda / formalchemy

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

Pylons admin interface with SQLAlchemy 0.6 and WebHelpers 0.6.4 #142

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
If I try to display the admin interface with Pylons 0.9.7, SQLAlchemy 0.6
and WebHelpers 0.6.4, I receive the following error message:

[..]
File
'../env/lib/python2.6/site-packages/FormAlchemy-1.3.4-py2.6.egg/formalchemy/ext/
pylons/controller.py',
line 267 in index
  page = self.get_page()
File
'../env/lib/python2.6/site-packages/FormAlchemy-1.3.4-py2.6.egg/formalchemy/ext/
pylons/controller.py',
line 173 in get_page
  return Page(collection, **options)
File
'../env/lib/python2.6/site-packages/WebHelpers-0.6.4-py2.6.egg/webhelpers/pagina
te.py',
line 315 in __init__
  self.collection = get_wrapper(collection, sqlalchemy_session)
File
'../env/lib/python2.6/site-packages/WebHelpers-0.6.4-py2.6.egg/webhelpers/pagina
te.py',
line 163 in get_wrapper
  raise TypeError("Sorry, your collection type is not supported by the
paginate module. "
TypeError: Sorry, your collection type is not supported by the paginate
module. You can either provide a list, a tuple, an SQLAlchemy 0.4 select
object or an SQLAlchemy 0.4 ORM-query object.

It is just a guess, but maybe this is because of SQLAlchemy 0.6. Anyway if
I install the latest WebHelpers release (1.0b6), the error message is gone
and everything works fine.

Original issue reported on code.google.com by tobias.s...@gtempaccount.com on 29 Apr 2010 at 7:15

GoogleCodeExporter commented 9 years ago
Yes. It works with the latest webhelpers version AFAIK. This is not related to 
FA

Original comment by gael.pas...@gmail.com on 7 May 2010 at 6:21

GoogleCodeExporter commented 9 years ago
I have the same error for Pylons 1.0.0, SQLAlchemy 0.6.4
and WebHelpers 0.6.4. But it looks like a problem with Python 2.6. If I use the 
same libs versions on Python 2.5 it's fine.

For now, I'll switch to SQLAlchemy 0.5.x.

Original comment by cybermatthieu on 24 Sep 2010 at 6:02

GoogleCodeExporter commented 9 years ago
The same here.
WebHelpers 1.2
SqlAlchemy 0.6.6 
The same result. Will try swiching to SqlAlchemy 0.5.x

Original comment by lukasz.s...@gmail.com on 15 Jan 2011 at 12:08