Pegase745 / sqlalchemy-datatables

SQLAlchemy integration of jQuery DataTables >= 1.10.x (Pyramid and Flask examples)
MIT License
161 stars 65 forks source link

Properly type request values #14

Closed orf closed 10 years ago

orf commented 10 years ago

On Python 3.4 the sorting() function fails on "self.request_values.get('iSortingCols') > 0:", because it cannot compare a string to an integer. Rather than just wrap an int() around it this patch turns self.request_values into a dictionary and applies the correct types to all values.

Pegase745 commented 10 years ago

You're right, thanks great job !