Ticket #1319: sqla2.diff
| File sqla2.diff, 511 bytes (added by alastair, 2 years ago) |
|---|
-
turbogears/paginate.py
old new 248 251 249 252 def sql_order_col(col, ascending=True): 250 253 """Return an ordered col for col.""" 251 if sqlalchemy and isinstance(col, sqlalchemy.s chema.Column):254 if sqlalchemy and isinstance(col, sqlalchemy.sql.ColumnElement): 252 255 if ascending: 253 256 order_col = sqlalchemy.sql.asc(col) 254 257 else: