From 7bc9ec7b157e7276507668158ff0187adfc1c3a4 Mon Sep 17 00:00:00 2001 From: Andre Merzky Date: Wed, 23 Oct 2013 13:57:10 +0200 Subject: [PATCH] add Registry and Lockable --- radical/utils/__init__.py | 2 ++ radical/utils/testing.py | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/radical/utils/__init__.py b/radical/utils/__init__.py index 1e3e653a0..a0d5e26b0 100644 --- a/radical/utils/__init__.py +++ b/radical/utils/__init__.py @@ -12,6 +12,8 @@ from url import Url from testing import TestConfig, Testing, get_test_config from dict_mixin import DictMixin +from lockable import Lockable +from registry import Registry, READONLY, READWRITE # import utility methods from ids import generate_id diff --git a/radical/utils/testing.py b/radical/utils/testing.py index d0cd8eda4..93df79973 100644 --- a/radical/utils/testing.py +++ b/radical/utils/testing.py @@ -47,7 +47,7 @@ def __init__ (self, cfg_file, cfg_name=None) : def __setitem__(self, key, value): self.changed_values[key] = value - super(D, self).__setitem__(key, value) + super(TestConfig, self).__setitem__(key, value) def __getattr__(self, item): """Maps values to attributes.