def __init__(self, element, doc):
     CopysetJournaled.__init__(self, element, doc)
     try:
         __source = element.getElementsByTagName("source")[0]
         self.source = CopyObject(__source, doc)
     # except Exception, e:
     except Exception, e:
         ComLog.getLogger(__logStrLevel__).warning(e)
         raise ComException("source for copyset not defined")
Exemple #2
0
 def __init__(self, element, doc):
     CopysetJournaled.__init__(self, element, doc)
     try:
         __source = element.getElementsByTagName('source')[0]
         self.source = CopyObject(__source, doc)
     #except Exception, e:
     except Exception, e:
         ComLog.getLogger(__logStrLevel__).warning(e)
         raise ComException("source for copyset not defined")
 def __init__(self, element, doc):
     CopysetJournaled.__init__(self, element, doc)
     try:
         __source=self.getElement().getElementsByTagName('source')[0]
     except IndexError, ie:
         raise IndexError("Source for lvm copyset %s not defined: %s" % (self.getAttribute("name", "unknown"), ie))