thirdparty/google_appengine/google/appengine/api/apiproxy_stub.py
changeset 828 f5fd65cc3bf3
parent 686 df109be0567c
equal deleted inserted replaced
827:88c186556a80 828:f5fd65cc3bf3
    19 
    19 
    20 
    20 
    21 
    21 
    22 
    22 
    23 
    23 
    24 
    24 from google.appengine.api import apiproxy_rpc
    25 from google.appengine.runtime import apiproxy_errors
    25 from google.appengine.runtime import apiproxy_errors
    26 
    26 
    27 
    27 
    28 MAX_REQUEST_SIZE = 1 << 20
    28 MAX_REQUEST_SIZE = 1 << 20
    29 
    29 
    47         request exceeds this size.  Default is 1 MB.
    47         request exceeds this size.  Default is 1 MB.
    48     """
    48     """
    49     self.__service_name = service_name
    49     self.__service_name = service_name
    50     self.__max_request_size = max_request_size
    50     self.__max_request_size = max_request_size
    51 
    51 
       
    52   def CreateRPC(self):
       
    53     """Creates RPC object instance.
       
    54 
       
    55     Returns:
       
    56       a instance of RPC.
       
    57     """
       
    58     return apiproxy_rpc.RPC(stub=self)
       
    59 
    52   def MakeSyncCall(self, service, call, request, response):
    60   def MakeSyncCall(self, service, call, request, response):
    53     """The main RPC entry point.
    61     """The main RPC entry point.
    54 
    62 
    55     Args:
    63     Args:
    56       service: Must be name as provided to service_name of constructor.
    64       service: Must be name as provided to service_name of constructor.