Ejemplo n.º 1
0
    def serialize(self, element):
        from comoonics.storage.ComArchive import Archive
        earchive=self.getElement().getElementsByTagName("archive")[0]
        archive=Archive(earchive, self.getDocument())
#        print "Created archive: %s" %(archive)
        ComLog.getLogger(self.__logStrLevel__).debug("Saving element %s to archive" %(element))
        archive.addNextDOMElement(element)
        ComLog.getLogger(self.__logStrLevel__).debug("Saved element %s to archive element" %(element.tagName))
Ejemplo n.º 2
0
 def getDataArchive(self):
     ''' returns data archive object'''
     import comoonics.XmlTools
     try:
         __archive = comoonics.XmlTools.evaluateXPath(
             'data/archive', self.element)[0]
         return Archive(__archive, self.document)
     except Exception:
         raise ComException("no data archiv description found")
Ejemplo n.º 3
0
    def resolve(self):
#        print "ArchiveMetadata.resolve"
        from comoonics.storage.ComArchive import Archive
        earchive=self.getElement().getElementsByTagName("archive")[0]
        archive=Archive(earchive, self.getDocument())
#        print "Created archive: %s" %(archive)
        element=archive.getNextDOMElement()
        ComLog.getLogger(self.__logStrLevel__).debug("Found element %s" %(element.tagName))
        return element