blob: 35af79271d889471820b398e5ba23bff15cbaac0 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
|
'''This is the Structure base class'''
__revision__ = '$Revision$'
class Structure(object):
'''The Structure class is used to define patterns of data in host configurations
Structure subtyped classes provide functions that group configurations into dependent
and independent clauses'''
__name__ = 'example'
def __init__(self, core, datastore):
'''Common structure setup'''
object.__init__(self)
self.data = "%s/%s" % (datastore, self.__name__)
self.core = core
self.__setup__()
def __setup__(self):
pass
def Construct(self, metadata):
'''Returns a list of configuration structure chunks for client'''
metadata.image # pylint hack
return []
def GetDependencies(self, metadata):
'''Get a list of dependencies for structures returned by Construct'''
metadata.image
return []
|