예제 #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 = []
예제 #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 = []
예제 #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)
예제 #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)
예제 #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)
예제 #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)
예제 #7
0
    def cdataBlock(self, data):

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

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

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

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