summaryrefslogtreecommitdiffstats
path: root/ipalib/config.py
diff options
context:
space:
mode:
authorJason Gerard DeRose <jderose@redhat.com>2009-05-13 01:04:35 -0600
committerJason Gerard DeRose <jderose@redhat.com>2009-05-19 13:49:15 -0600
commit4f9224774f7ec7c1c8ed4fedef2f2b62390064d2 (patch)
tree40dada32e1083c94eff71c31046d13e51399f485 /ipalib/config.py
parent86472a94eeb166a0d1379834e91995809a7ddf7e (diff)
downloadfreeipa-4f9224774f7ec7c1c8ed4fedef2f2b62390064d2.tar.gz
freeipa-4f9224774f7ec7c1c8ed4fedef2f2b62390064d2.tar.xz
freeipa-4f9224774f7ec7c1c8ed4fedef2f2b62390064d2.zip
Added Param 'include' and 'exclude' kwargs; added frontend.UsesParams base class with methods implementing the filtering to restrict params to only certain contexts
Diffstat (limited to 'ipalib/config.py')
-rw-r--r--ipalib/config.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/ipalib/config.py b/ipalib/config.py
index f955ce084..37ab2748f 100644
--- a/ipalib/config.py
+++ b/ipalib/config.py
@@ -198,9 +198,11 @@ class Env(object):
__locked = False
- def __init__(self):
+ def __init__(self, **initialize):
object.__setattr__(self, '_Env__d', {})
object.__setattr__(self, '_Env__done', set())
+ if initialize:
+ self._merge(**initialize)
def __lock__(self):
"""