Ticket #1591 (closed defect: fixed)

Opened 7 months ago

Last modified 7 months ago

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

Reported by: roger.demetrescu Assigned to: 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

10/20/07 07:27:14 changed by roger.demetrescu

  • status changed from new to closed.
  • resolution set to fixed.

Fixed in [3527] and [3528]