Make most messages configurable

This commit is contained in:
Matt Wright
2012-07-12 15:24:57 -04:00
parent 3df4c4d14a
commit 18c7a838b0
7 changed files with 50 additions and 25 deletions
+4
View File
@@ -95,6 +95,10 @@ def get_config(app):
return dict([strip_prefix(i) for i in items if i[0].startswith(prefix)])
def get_message(key, **kwargs):
return config_value('MSG_' + key) % kwargs
def config_value(key, app=None, default=None):
"""Get a Flask-Security configuration value.