Ticket #1319: sqla2.diff

File sqla2.diff, 511 bytes (added by alastair, 2 years ago)

Patch to make paginate check for sql.ColumnElement? rather than schema.Column

  • turbogears/paginate.py

    old new  
    248251 
    249252def sql_order_col(col, ascending=True): 
    250253    """Return an ordered col for col.""" 
    251     if sqlalchemy and isinstance(col, sqlalchemy.schema.Column): 
     254    if sqlalchemy and isinstance(col, sqlalchemy.sql.ColumnElement): 
    252255        if ascending: 
    253256            order_col = sqlalchemy.sql.asc(col) 
    254257        else: