Pegase745 / sqlalchemy-datatables

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

Fix: made the module available for Flask and other frameworks #23

Closed ashl1 closed 9 years ago

ashl1 commented 9 years ago

WARNING! This patch changes API!

In this patch changes the type of 'request' argument for DataTables constructor. Now it accept the MultiDict (not 'request' itself) to work with any web-framework. (Pyramid uses request.GET with pyramid.interfaces.IMultiDict type, Flask uses request.args with werkzeug.datastructures.MultiDict. Both supports .items() method for iterating)

Pegase745 commented 9 years ago

:+1: