def __init__(self, element, doc):
    super(StorageCopyset, self).__init__(element, doc)
    self.implementation=self.getElement().getAttribute("implementation")
    mylogger.debug("%s@%s Implementation: %s" %(self.getElement().tagName, self.getElement().getAttribute("name"), self.implementation))
    self.storage=Storage.getStorageObject(self.implementation, self.getElement())
    self.source=StorageCopyObject(element.getElementsByTagName("source")[0], doc, self.storage)
    self.destination=StorageCopyObject(element.getElementsByTagName("destination")[0], doc, self.storage)
 def __init__(self, element, doc):
     super(StorageCopyset, self).__init__(element, doc)
     self.implementation = self.getElement().getAttribute("implementation")
     mylogger.debug(
         "%s@%s Implementation: %s" %
         (self.getElement().tagName, self.getElement().getAttribute("name"),
          self.implementation))
     self.storage = Storage.getStorageObject(self.implementation,
                                             self.getElement())
     self.source = StorageCopyObject(
         element.getElementsByTagName("source")[0], doc, self.storage)
     self.destination = StorageCopyObject(
         element.getElementsByTagName("destination")[0], doc, self.storage)
 def __init__(self, element, doc):
     super(StorageModificationset, self).__init__(element, doc)
     self.implementation = self.getAttribute("implementation")
     self.action = self.getAttribute("action")
     self.storage = Storage.getStorageObject(self.implementation, self.getElement())
     self.createModificationsList(
         self.getElement().getElementsByTagName("disk"),
         doc,
         storage=self.storage,
         action=self.action,
         type=self.getAttribute("type"),
     )
     for modification in self.getModifications():
         modification.storage = self.storage
Ejemplo n.º 4
0
 def __init__(self, element, doc):
     super(StorageModificationset, self).__init__(element, doc)
     self.implementation = self.getAttribute("implementation")
     self.action = self.getAttribute("action")
     self.storage = Storage.getStorageObject(self.implementation,
                                             self.getElement())
     self.createModificationsList(
         self.getElement().getElementsByTagName("disk"),
         doc,
         storage=self.storage,
         action=self.action,
         type=self.getAttribute("type"))
     for modification in self.getModifications():
         modification.storage = self.storage