Example #1
0
    def __init__(self, store, uuid, version, generator):

        XMLOffFilter.__init__(self, generator, 'ref', 'text', 'binary')

        self.store = store
        self.repository = store.repository.view
        self.uuid = uuid
        self.version = version
        self.data = ''

        self._attrs = []
Example #2
0
    def __init__(self, store, uuid, version, generator):

        XMLOffFilter.__init__(self, generator, 'ref', 'text', 'binary')

        self.store = store
        self.repository = store.repository.view
        self.uuid = uuid
        self.version = version
        self.data = ''
        
        self._attrs = []
Example #3
0
    def endElement(self, tag):

        if not self.errorOccurred():
            attrs = self._attrs.pop()
            method = getattr(self, tag + 'End', None)
            if method is not None:
                try:
                    method(attrs)
                except Exception:
                    self.saveException()

        XMLOffFilter.endElement(self, tag)
Example #4
0
    def endElement(self, tag):

        if not self.errorOccurred():
            attrs = self._attrs.pop()
            method = getattr(self, tag + 'End', None)
            if method is not None:
                try:
                    method(attrs)
                except Exception:
                    self.saveException()

        XMLOffFilter.endElement(self, tag)
Example #5
0
    def startElement(self, tag, attrs):

        if not self.errorOccurred():
            self.data = ''
            method = getattr(self, tag + 'Start', None)
            if method is not None:
                try:
                    method(attrs)
                except Exception:
                    self.saveException()
            self._attrs.append(attrs)

        XMLOffFilter.startElement(self, tag, attrs)
Example #6
0
    def startElement(self, tag, attrs):

        if not self.errorOccurred():
            self.data = ''
            method = getattr(self, tag + 'Start', None)
            if method is not None:
                try:
                    method(attrs)
                except Exception:
                    self.saveException()
            self._attrs.append(attrs)

        XMLOffFilter.startElement(self, tag, attrs)
Example #7
0
    def cdataBlock(self, data):

        self.data += data
        XMLOffFilter.cdataBlock(self, data)
Example #8
0
    def characters(self, data):

        self.data += data
        XMLOffFilter.characters(self, data)
Example #9
0
    def cdataBlock(self, data):

        self.data += data
        XMLOffFilter.cdataBlock(self, data)
Example #10
0
    def characters(self, data):

        self.data += data
        XMLOffFilter.characters(self, data)