예제 #1
0
 def __init__(self, sup):
     OptInHandler.__init__(self)
     self.sup = sup
     self.parsers[(ROOT_NS, 'text')] = saxkit.SimpleValueParser()
     self.parsers[(ROOT_NS, 'comment')] = saxkit.SimpleValueParser()
     self.parsers[(ROOT_NS, 'timestamp')] = saxkit.SimpleValueParser()
     self.parsers[(ROOT_NS, 'id')] = saxkit.SimpleValueParser()
예제 #2
0
파일: comps.py 프로젝트: TaRiven/snippets
 def getParser(self, name):
     rv = None
     if name == (None, 'groupreq'):
         return saxkit.SimpleValueParser()
     elif name == (None, 'metapkg'):
         return saxkit.SimpleValueParser()
     else:
         raise "GroupList doesn't know how to parse child " + ` name `
     return rv
예제 #3
0
    def __init__(self):
        saxkit.ElementHandler.__init__(self)
        self.parsers[(None, 'DeviceId')] = DeviceId()
        self.parsers[(None, 'Event')] = EventList()
        self.parsers[(None, 'MaxEnvelopes')] = saxkit.SimpleValueParser()
        self.parsers[(None, 'CurrentTime')] = saxkit.SimpleValueParser()
        self.parsers[(None, 'RetryCount')] = saxkit.SimpleValueParser()
        self.parsers[(None, 'ParameterList')] = Parameters()

        self.parts = {}
예제 #4
0
    def __init__(self):
        OptInHandler.__init__(self)
        self.parsers[(ROOT_NS, 'title')] = saxkit.SimpleValueParser()
        self.parsers[(ROOT_NS, 'id')] = saxkit.SimpleValueParser()
        self.parsers[(ROOT_NS, 'is_redirect')] = saxkit.IgnoringParser()

        self.was_seen = False
        self.is_redirect = False
        self.geo = None
        self.revdata = {}
        self.interesting = True
예제 #5
0
파일: comps.py 프로젝트: TaRiven/snippets
 def __init__(self):
     saxkit.ElementHandler.__init__(self)
     self.parsers[(None, 'id')] = saxkit.SimpleValueParser()
     self.parsers[(None, 'name')] = saxkit.IgnoringParser(False)
     self.parsers[(None, 'description')] = saxkit.IgnoringParser(False)
     self.parsers[(None, 'uservisible')] = saxkit.IgnoringParser(False)
     self.parsers[(None, 'default')] = saxkit.SimpleValueParser()
     self.parsers[(None, 'packagelist')] = PackageList()
     self.parsers[(None, 'langonly')] = saxkit.SimpleValueParser()
     self.parsers[(None, 'biarchonly')] = saxkit.SimpleValueParser()
     self.parsers[(None, 'grouplist')] = GroupList()
예제 #6
0
 def __init__(self, sup):
     OptInHandler.__init__(self)
     self.sup = sup
     self.parsers[(ROOT_NS, 'username')] = saxkit.SimpleValueParser()
     self.parsers[(ROOT_NS, 'id')] = saxkit.SimpleValueParser()
예제 #7
0
 def __init__(self):
     OptInHandler.__init__(self)
     self.parsers[(ROOT_NS, 'title')] = saxkit.SimpleValueParser()
     self.parsers[(ROOT_NS, 'abstract')] = saxkit.SimpleValueParser()
예제 #8
0
 def __init__(self):
     saxkit.ElementHandler.__init__(self)
     self.parsers[(None, 'Manufacturer')] = saxkit.SimpleValueParser()
     self.parsers[(None, 'OUI')] = saxkit.SimpleValueParser()
     self.parsers[(None, 'ProductClass')] = saxkit.SimpleValueParser()
     self.parsers[(None, 'SerialNumber')] = saxkit.SimpleValueParser()
예제 #9
0
 def __init__(self):
     saxkit.ElementHandler.__init__(self)
     self.parsers[(None, 'Name')] = saxkit.SimpleValueParser()
     self.parsers[(None, 'Value')] = saxkit.SimpleValueParser()
예제 #10
0
 def __init__(self):
     saxkit.ElementHandler.__init__(self)
     self.parsers[(None, 'EventCode')] = saxkit.SimpleValueParser()
     self.parsers[(None, 'CommandKey')] = saxkit.SimpleValueParser()
예제 #11
0
    def __init__(self):
        OptInHandler.__init__(self)
        self.parsers[(ROOT_NS, 'title')]=saxkit.SimpleValueParser()

        self.was_seen=False
        self.interesting=False
예제 #12
0
파일: comps.py 프로젝트: TaRiven/snippets
 def getParser(self, name):
     assert name[1] == 'packagereq'
     return saxkit.SimpleValueParser()