

def _write_methods(method_descriptors, out):
    'Write methods of Service types.\n\n  All service method implementations raise NotImplementedError.\n\n  Args:\n    method_descriptors: List of MethodDescriptor objects from which to\n      generate methods.\n    out: Indent writer used for generating text.\n  '
    for method in method_descriptors:
        (out << '')
        (out << ("@remote.method('%s', '%s')" % (method.request_type, method.response_type)))
        (out << ('def %s(self, request):' % (method.name,)))
        with out.indent():
            (out << ("raise NotImplementedError('Method %s is not implemented')" % method.name))

dataset/ETHPy150Open AppScale/appscale/AppServer/lib/protorpc/protorpc/generate_python.py _write_methods/original