From 010c079694d57a8bbfb57fadf63a542a53aa805d Mon Sep 17 00:00:00 2001 From: Narayan Desai Date: Tue, 6 Jan 2004 06:20:22 +0000 Subject: 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 --- src/Generator.py | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) (limited to 'src') 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) -- cgit v1.2.3-1-g7c22