diff options
Diffstat (limited to 'paste')
-rw-r--r-- | paste/deploy/config.py | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/paste/deploy/config.py b/paste/deploy/config.py index 055a1c2..912eeb0 100644 --- a/paste/deploy/config.py +++ b/paste/deploy/config.py @@ -117,6 +117,15 @@ class DispatchingConfig(object): "or thread") return conf[key] + def __contains__(self, key): + # I thought __getattr__ would catch this, but apparently not + return self.has_key(key) + + def __setitem__(self, key, value): + # I thought __getattr__ would catch this, but apparently not + conf = self.current_conf() + conf[key] = value + CONFIG = DispatchingConfig() class ConfigMiddleware(object): |