1. Ben Bangert
  2. WebHelpers

Commits

bbangert  committed d336e72

[svn] Merged patch for tuple usage in collection for pagination, caught by Matthew Scott

  • Participants
  • Parent commits ba30c01
  • Branches trunk

Comments (0)

Files changed (1)

File webhelpers/pagination/orm.py

View file
     orms['sqlalchemy'] = True
 
 def get_wrapper(obj, *args, **kw):
-    if isinstance(obj, list):
+    if isinstance(obj, (list, tuple)):
         return obj
     if orms.get('sqlobject'):
         if issubclass(obj, sqlobject.SQLObject):