From 4f9224774f7ec7c1c8ed4fedef2f2b62390064d2 Mon Sep 17 00:00:00 2001 From: Jason Gerard DeRose Date: Wed, 13 May 2009 01:04:35 -0600 Subject: Added Param 'include' and 'exclude' kwargs; added frontend.UsesParams base class with methods implementing the filtering to restrict params to only certain contexts --- ipalib/config.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'ipalib/config.py') 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): """ -- cgit