Added an __call__ on Groups so a better error message is raised.

This commit is contained in:
Jeremy Fincher 2004-07-25 11:06:56 +00:00
parent 282846fd59
commit c515e925b8
1 changed files with 3 additions and 0 deletions

View File

@ -132,6 +132,9 @@ class Group(object):
self.setValue(*args)
self.X = X
def __call__(self):
raise ValueError, 'Groups have no value.'
def __nonExistentEntry(self, attr):
s = '%s is not a valid entry in %s' % (attr, self.name)
raise NonExistentRegistryEntry, s