diff options
author | Narayan Desai <desai@mcs.anl.gov> | 2004-01-06 06:20:22 +0000 |
---|---|---|
committer | Narayan Desai <desai@mcs.anl.gov> | 2004-01-06 06:20:22 +0000 |
commit | 010c079694d57a8bbfb57fadf63a542a53aa805d (patch) | |
tree | 3775acf7fd7642f3f487b6587e8072f0bf74b9eb /src | |
parent | 9495ed61507cac6173f99a9e2181dd4cab416d41 (diff) | |
download | bcfg2-010c079694d57a8bbfb57fadf63a542a53aa805d.tar.gz bcfg2-010c079694d57a8bbfb57fadf63a542a53aa805d.tar.bz2 bcfg2-010c079694d57a8bbfb57fadf63a542a53aa805d.zip |
change setup steps a bit
(Logical change 1.12)
git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@42 ce84e21b-d406-0410-9b95-82705330c041
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) |