Skip to content

Commit

Permalink
new configuration remove
Browse files Browse the repository at this point in the history
  • Loading branch information
joamag committed Nov 7, 2017
1 parent d32bef8 commit 873724c
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/quorum/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@
get_level, get_handlers, get_handler, get_bundle, is_devel, finalize, before_request,\
after_request, context_processor, start_execution, stop_execution, setup_models,\
models_c, resolve, templates_path, bundles_path, base_path, has_context, onrun
from .config import conf, conf_prefix, conf_suffix, confs, confd
from .config import conf, conf_prefix, conf_suffix, confs, confr, confd
from .crypt import Cipher, RC4, Spritz
from .daemon import Daemon
from .data import DataAdapter, MongoAdapter, TinyAdapter, Collection, MongoCollection, TinyCollection
Expand Down
3 changes: 3 additions & 0 deletions src/quorum/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -123,6 +123,9 @@ def confs(name, value):
global config_g
config_g[name] = value

def confr(name):
del config_g[name]

def confd():
return config_g

Expand Down

0 comments on commit 873724c

Please sign in to comment.