mirror of
https://github.com/openembedded/meta-openembedded.git
synced 2026-04-20 11:38:34 +00:00
python-flask-wtf: Add recipe for version 0.12
It's a simple integration of Flask and WTForms. Signed-off-by: Fabio Berton <fabio.berton@ossystems.com.br> Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com> Signed-off-by: Armin Kuster <akuster808@gmail.com>
This commit is contained in:
committed by
Armin Kuster
parent
9b1377a258
commit
3e88e5e3aa
@@ -0,0 +1,28 @@
|
||||
Upstream-Status: Inappropriate [configuration]
|
||||
|
||||
Subject: [PATCH] import simplejson as json
|
||||
|
||||
At runtime python-Flask-WTF tries to import json, but the module is not
|
||||
available, import simplejson as json solve the issue.
|
||||
|
||||
Signed-off-by: Fabio Berton <fabio.berton@ossystems.com.br>
|
||||
---
|
||||
flask_wtf/recaptcha/validators.py | 2 +-
|
||||
1 file changed, 1 insertion(+), 1 deletion(-)
|
||||
|
||||
diff --git a/flask_wtf/recaptcha/validators.py b/flask_wtf/recaptcha/validators.py
|
||||
index bcff23d..4a244bb 100644
|
||||
--- a/flask_wtf/recaptcha/validators.py
|
||||
+++ b/flask_wtf/recaptcha/validators.py
|
||||
@@ -8,7 +8,7 @@ from flask import request, current_app
|
||||
from wtforms import ValidationError
|
||||
from werkzeug import url_encode
|
||||
from .._compat import to_bytes, to_unicode
|
||||
-import json
|
||||
+import simplejson as json
|
||||
|
||||
RECAPTCHA_VERIFY_SERVER = 'https://www.google.com/recaptcha/api/siteverify'
|
||||
RECAPTCHA_ERROR_CODES = {
|
||||
--
|
||||
2.1.4
|
||||
|
||||
Reference in New Issue
Block a user