moksha/lib/helpers.py | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-)
New commits: commit d5e13ffc2c709f54726716a0a109b8f3523373eb Merge: b0a2b0d... ad42a78... Author: Luke Macken lmacken@redhat.com Date: Tue May 5 10:34:42 2009 -0400
Merge branch 'master' of git+ssh://git.fedorahosted.org/git/moksha
commit b0a2b0df2bdf43cd8c4893bc6f66b9eb51f5f2ae Author: Luke Macken lmacken@redhat.com Date: Tue May 5 10:33:57 2009 -0400
Generate uuid's in the ConfigWrapper.process instead of __init__.
This was causing clashes in the updates application.
diff --git a/moksha/lib/helpers.py b/moksha/lib/helpers.py index eaab91f..18ddb2f 100644 --- a/moksha/lib/helpers.py +++ b/moksha/lib/helpers.py @@ -84,9 +84,6 @@ class ConfigWrapper(object): Derive from this class to create new configuration syntax
""" - def __init__(self): - super(ConfigWrapper, self).__init__() - self.uuid = 'uuid' + str(uuid.uuid4())
def _update_nested_dicts(self, dest, source): """Recursive helper which updates nested dicts""" @@ -135,8 +132,8 @@ class ConfigWrapper(object): the configuration option """ default_values = dict(query_string='', - id = self.uuid, - type = self.__class__.__name__) + id='uuid' + str(uuid.uuid4()), + type=self.__class__.__name__)
return default_values
moksha-commits@lists.fedorahosted.org