Changeset 3067

Show
Ignore:
Timestamp:
06/03/07 09:09:16 (2 years ago)
Author:
faide
Message:

Patch from ticket #1319 thanks to Alastair

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/turbogears/paginate.py

    r3064 r3067  
    320320def sql_order_col(col, ascending=True): 
    321321    """Return an ordered col for col.""" 
    322     if sqlalchemy and isinstance(col, sqlalchemy.schema.Column): 
     322    if sqlalchemy and isinstance(col, sqlalchemy.sql.ColumnElement): 
    323323        if ascending: 
    324324            order_col = sqlalchemy.sql.asc(col)