From d8a2ae6b0994efce15072e7b6570077d200c4c0d Mon Sep 17 00:00:00 2001 From: Antoine Goutenoir Date: Mon, 21 Oct 2019 23:13:10 +0200 Subject: [PATCH] Provide configuration as Dictionary as well. --- flaskr/content.py | 1 + flaskr/forms.py | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/flaskr/content.py b/flaskr/content.py index 3a89873..58a9dd2 100644 --- a/flaskr/content.py +++ b/flaskr/content.py @@ -21,6 +21,7 @@ class Struct(object): content = Struct(content_dict) + # For Python3? # def dict2obj(d): # """ diff --git a/flaskr/forms.py b/flaskr/forms.py index 81bff04..3e4479b 100644 --- a/flaskr/forms.py +++ b/flaskr/forms.py @@ -7,7 +7,7 @@ from wtforms import \ from wtforms import validators from .models import User -from .content import content +from .content import content_dict as content form_content = content['estimate']['form'] -- libgit2 0.21.2