From da0cf9b9219d0e38ccbffc8af3f00153a96ceacc Mon Sep 17 00:00:00 2001 From: Jeremy Fincher Date: Thu, 15 Jan 2004 12:17:50 +0000 Subject: [PATCH] Added a few more methods. I think we're going to have to make Group.__getattr__ return the Value holder, not its .value attribute. --- src/registry.py | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/src/registry.py b/src/registry.py index 52aed6160..01547c509 100644 --- a/src/registry.py +++ b/src/registry.py @@ -75,6 +75,15 @@ class Value(object): def get(self): return self.value + def default(self): + return self.default + + def reset(self): + self.value = self.default + + def help(self): + return self.help + def __str__(self): return repr(self.value)