Warning: Can't synchronize with repository "(default)" (Unsupported version control system "svn": No module named svn). Look in the Trac log for more information.

Ticket #1591 (closed defect: fixed)

Opened 9 years ago

Last modified 9 years ago

paginate module raises Exception when checking instance of SelectResult with SQLAlchemy 0.4

Reported by: roger.demetrescu Owned by: anonymous
Priority: high Milestone: 1.0.4
Component: TurboGears Version: 1.0.4b1
Severity: normal Keywords: paginate sqlalchemy
Cc:

Description

The following import (from paginate.py):

from sqlalchemy.ext.selectresults import SelectResults as SASelectResults

... brings a class object in SA 0.3.x, but a function if SA 0.4 is used.

This causes the following error when "isinstance(var_data, SASelectResults)" is executed:

TypeError: isinstance() arg 2 must be a class, type, or tuple of classes and types

Change History

comment:1 Changed 9 years ago by roger.demetrescu

  • Status changed from new to closed
  • Resolution set to fixed

Fixed in [3527] and [3528]

Note: See TracTickets for help on using tickets.