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()
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
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 = {}
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
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()
def __init__(self, sup): OptInHandler.__init__(self) self.sup = sup self.parsers[(ROOT_NS, 'username')] = saxkit.SimpleValueParser() self.parsers[(ROOT_NS, 'id')] = saxkit.SimpleValueParser()
def __init__(self): OptInHandler.__init__(self) self.parsers[(ROOT_NS, 'title')] = saxkit.SimpleValueParser() self.parsers[(ROOT_NS, 'abstract')] = saxkit.SimpleValueParser()
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()
def __init__(self): saxkit.ElementHandler.__init__(self) self.parsers[(None, 'Name')] = saxkit.SimpleValueParser() self.parsers[(None, 'Value')] = saxkit.SimpleValueParser()
def __init__(self): saxkit.ElementHandler.__init__(self) self.parsers[(None, 'EventCode')] = saxkit.SimpleValueParser() self.parsers[(None, 'CommandKey')] = saxkit.SimpleValueParser()
def __init__(self): OptInHandler.__init__(self) self.parsers[(ROOT_NS, 'title')]=saxkit.SimpleValueParser() self.was_seen=False self.interesting=False
def getParser(self, name): assert name[1] == 'packagereq' return saxkit.SimpleValueParser()