Created
August 16, 2018 18:38
-
-
Save dario61081/55dcac5691c630414ea0662d0dd3d529 to your computer and use it in GitHub Desktop.
clase view para pluggar vistas
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class Lista(View): | |
def dispatch_request(self): | |
datos = g.data.select_many('select first 100 * from PAGOS ') | |
return jsonify([dict(data) for data in datos]) | |
app.add_url_rule('/test/a', view_func=Lista.as_view('show_list')) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment