def __init__(self, template):
        """\brief Initialize the class
		\param (\c string) xml template instance as string buffer
		"""
        Template.__init__(self, template)
        self.__compvars = {}
        self.__topovars = {}
        self.__get_vars()
Beispiel #2
0
 def __init__(self, template):
     Template.__init__(self, template)
     self.__distcomp = self.dom.getElementsByTagName("distcomposition")[0]
     self.__topo = Topology(
         self.__distcomp.getElementsByTagName("topology")[0])
     self.__comps = [
         Composition(c)
         for c in self.__distcomp.getElementsByTagName("composition")
     ]