diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/Generator.py | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/src/Generator.py b/src/Generator.py index 092bf735f..99c6cedb8 100644 --- a/src/Generator.py +++ b/src/Generator.py @@ -20,7 +20,11 @@ class Generator(object): def __init__(self, core): self.core=core self.data="%s/%s"%(self.__datastore__,self.__name__) - self.PublishAll() + self.__setup__() + + def __setup__(self): + '''This method must be overloaded during subclassing. + All module specific setup, including all publication, occurs here.''' def CompleteSetup(self): self.ReadAll() @@ -40,9 +44,6 @@ class Generator(object): def Publish(self,key,value): self.core.Publish(self.__name__,key,value) - def PublishAll(self): - pass - def Read(self,key): self.core.ReadValue(key) |