Package PyFoam :: Package Infrastructure :: Module RunHook
[hide private]
[frames] | no frames]

Source Code for Module PyFoam.Infrastructure.RunHook

 1  """Base class for all Run-Hooks""" 
 2   
 3  from PyFoam import configuration 
 4  from PyFoam.Error import notImplemented 
 5   
6 -class RunHook(object):
7 """The actual class""" 8
9 - def __init__(self,runner,name):
10 self.runner=runner 11 self.name=name
12
13 - def conf(self):
14 """Quick access to the configuration""" 15 return configuration().sectionProxy(self.name)
16
17 - def execute(self):
18 notImplemented(self,"execute")
19