def getparser(self): parser, unmarshaller = Transport.getparser(self) dispatch = unmarshaller.dispatch.copy() unmarshaller.dispatch = dispatch # Now we can add custom types dispatch["ex:nil"] = dispatch["nil"] dispatch["ex:i2"] = dispatch["int"] dispatch["ex:i4"] = dispatch["int"] dispatch["ex:i8"] = dispatch["int"] return parser, unmarshaller
def getparser(self): if self.protocol == 'json': parser = DummyParser() return parser, parser else: return Transport.getparser(self)