示例#1
0
 def message_to_json(self, *args, **kwargs):
   return message_to_json(*args, **kwargs)
 def decorated(self, msg, *args, **kw):
   response, data = f(self, data=proto.message_to_json(msg), *args, **kw)
   return response, proto.message_from_json(response_msg, data)
示例#3
0
 def msg(self, msg):
   if msg:
     return message_to_json(msg)
示例#4
0
 def decorated(self, msg, *args, **kw):
     response, data = f(self,
                        data=proto.message_to_json(msg),
                        *args,
                        **kw)
     return response, proto.message_from_json(response_msg, data)