Add a features modules that process the flask dict.

This commit is contained in:
jakedt 2014-04-03 18:47:17 -04:00
parent 173f8d9b9a
commit 0abbf042dd
3 changed files with 14 additions and 0 deletions

5
features/__init__.py Normal file
View file

@ -0,0 +1,5 @@
def import_features(config_dict):
for feature, feature_val in config_dict.items():
if feature.startswith('FEATURE_'):
feature_name = feature[8:]
globals()[feature_name] = feature_val