Module Expr Str Import alias Import alias ClassDef bases NameLoad body Expr Str Assign NameStore Num Assign NameStore Num Assign NameStore Num FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam NameParam NameParam NameParam defaults NameLoad NameLoad NameLoad NameLoad NameLoad NameLoad NameLoad body Expr Str Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str If CompareNotEq AttributeLoad NameLoad attr AttributeLoad NameLoad attr body Raise Call NameLoad Str Assign NameStore Call AttributeLoad NameLoad attr For TupleStore NameStore NameStore Call AttributeLoad AttributeLoad NameLoad attr attr body Expr Call NameLoad NameLoad NameLoad NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam NameParam NameParam defaults NameLoad NameLoad NameLoad NameLoad NameLoad NameLoad body Expr Str Assign AttributeStore NameLoad attr BoolOpOr NameLoad AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr BoolOpOr NameLoad AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr BoolOpOr NameLoad AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr BoolOpOr NameLoad AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr BoolOpOr NameLoad AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr BoolOpOr NameLoad AttributeLoad NameLoad attr Assert CompareIs AttributeLoad NameLoad attr AttributeLoad NameLoad attr BinOpMod Str TupleLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr Assert BoolOpOr CompareIs AttributeLoad NameLoad attr NameLoad Call NameLoad AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Call AttributeLoad NameLoad attr Assert NameLoad BinOpMod Str TupleLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Expr Str If BoolOpAnd AttributeLoad NameLoad attr AttributeLoad NameLoad attr body Raise AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr orelse If AttributeLoad NameLoad attr body Raise AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Return AttributeLoad NameLoad attr decorator_list NameLoad FunctionDef arguments args NameParam defaults body Return AttributeLoad NameLoad attr decorator_list NameLoad FunctionDef arguments args NameParam defaults body Expr Str Assign AttributeStore NameLoad attr AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Expr Str TryFinally body TryExcept body Expr Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr handlers ExceptHandler type NameLoad body Assign TupleStore NameStore AttributeStore NameLoad attr AttributeStore NameLoad attr Call AttributeLoad NameLoad attr finalbody Assign AttributeStore NameLoad attr AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Return NameLoad decorator_list FunctionDef arguments args NameParam defaults body If AttributeLoad NameLoad attr body TryExcept body Expr Call AttributeLoad NameLoad attr handlers ExceptHandler body Assign TupleStore NameStore AttributeStore NameLoad attr AttributeStore NameLoad attr Call AttributeLoad NameLoad attr Assign AttributeStore AttributeLoad NameLoad attr attr NameLoad Raise decorator_list decorator_list ClassDef bases NameLoad body Expr Str FunctionDef arguments args NameParam defaults body Expr Str Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr keyword AttributeLoad AttributeLoad NameLoad attr attr keyword TupleLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr Expr Call AttributeLoad AttributeLoad NameLoad attr attr Assign AttributeStore NameLoad attr AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Expr Str TryExcept body Expr Call AttributeLoad AttributeLoad NameLoad attr attr handlers ExceptHandler type NameLoad body Assign TupleStore NameStore AttributeStore NameLoad attr AttributeStore NameLoad attr Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr AttributeLoad NameLoad attr Expr Str Return NameLoad decorator_list decorator_list
N/A N/A Base class for implementing RPC of API proxy stubs. N/A sys N/A threading RPC N/A object N/A N/A Base class for implementing RPC of API proxy stubs.

  To implement a RPC to make real asynchronous API call:
    - Extend this class.
    - Override _MakeCallImpl and/or _WaitImpl to do a real asynchronous call.
   N/A IDLE 0 N/A RUNNING 1 N/A FINISHING 2 __init__ N/A N/A self package call request response callback deadline stub N/A None None None None None None None N/A N/A Constructor for the RPC object.

    All arguments are optional, and simply set members on the class.
    These data members will be overriden by values passed to MakeCall.

    Args:
      package: string, the package for the call
      call: string, the call within the package
      request: ProtocolMessage instance, appropriate for the arguments
      response: ProtocolMessage instance, appropriate for the response
      callback: callable, called when call is complete
      deadline: A double specifying the deadline for this call as the number of
                seconds from the current time. Ignored if non-positive.
      stub: APIProxyStub instance, used in default _WaitImpl to do real call
     N/A N/A self _exception None N/A N/A self _state N/A RPC IDLE N/A N/A self _traceback None N/A N/A self package package N/A N/A self call call N/A N/A self request request N/A N/A self response response N/A N/A self callback callback N/A N/A self deadline deadline N/A N/A self stub stub N/A Clone N/A N/A self N/A N/A N/A Make a shallow copy of this instances attributes, excluding methods.

    This is usually used when an RPC has been specified with some configuration
    options and is being used as a template for multiple RPCs outside of a
    developer's easy control.
     N/A N/A N/A self _state N/A RPC IDLE N/A N/A N/A AssertionError Cannot clone a call already in progress N/A clone N/A N/A self __class__ N/A N/A k v N/A N/A N/A self __dict__ iteritems N/A N/A N/A setattr clone k v N/A clone N/A MakeCall N/A N/A self package call request response callback deadline N/A None None None None None None N/A N/A Makes an asynchronous (i.e. non-blocking) API call within the
    specified package for the specified call method.

    It will call the _MakeRealCall to do the real job.

    Args:
      Same as constructor; see __init__.

    Raises:
      TypeError or AssertionError if an argument is of an invalid type.
      AssertionError or RuntimeError is an RPC is already in use.
     N/A N/A self callback N/A callback N/A self callback N/A N/A self package N/A package N/A self package N/A N/A self call N/A call N/A self call N/A N/A self request N/A request N/A self request N/A N/A self response N/A response N/A self response N/A N/A self deadline N/A deadline N/A self deadline N/A N/A N/A self _state N/A RPC IDLE N/A RPC for %s.%s has already been started N/A N/A self package N/A self call N/A N/A N/A N/A self callback None N/A callable N/A self callback N/A N/A N/A self _MakeCallImpl N/A Wait N/A N/A self N/A N/A N/A Waits on the API call associated with this RPC. N/A rpc_completed N/A N/A self _WaitImpl N/A rpc_completed N/A RPC for %s.%s was not completed, and no other exception was raised  N/A N/A self package N/A self call N/A CheckSuccess N/A N/A self N/A N/A N/A If there was an exception, raise it now.

    Raises:
      Exception of the API call or the callback, if any.
     N/A N/A N/A self _exception N/A self _traceback N/A N/A N/A N/A self _exception __class__ N/A self _exception N/A self _traceback N/A N/A N/A self _exception N/A N/A N/A self _exception N/A exception N/A N/A self N/A N/A N/A N/A self _exception N/A property state N/A N/A self N/A N/A N/A N/A self _state N/A property _MakeCallImpl N/A N/A self N/A N/A N/A Override this method to implement a real asynchronous call rpc. N/A N/A self _state N/A RPC RUNNING N/A _WaitImpl N/A N/A self N/A N/A N/A Override this method to implement a real asynchronous call rpc.

    Returns:
      True if the async call was completed successfully.
     N/A N/A N/A N/A N/A N/A N/A N/A self stub MakeSyncCall N/A self package N/A self call N/A self request N/A self response N/A N/A N/A Exception N/A N/A N/A _ N/A self _exception N/A self _traceback N/A N/A sys exc_info N/A N/A N/A self _state N/A RPC FINISHING N/A N/A N/A self _Callback N/A True N/A _Callback N/A N/A self N/A N/A N/A N/A self callback N/A N/A N/A N/A N/A N/A self callback N/A N/A N/A N/A N/A _ N/A self _exception N/A self _traceback N/A N/A sys exc_info N/A N/A N/A self _exception _appengine_apiproxy_rpc self N/A N/A N/A RealRPC N/A RPC N/A N/A  Overrides the RPC class to implement real asynchronous RPC calls using 
      Threads.
   _MakeCallImpl N/A N/A self N/A N/A N/A  Starts the thread which calls upon the service RPC. N/A N/A self _thread N/A N/A threading Thread target N/A N/A self stub MakeSyncCall args N/A N/A self package N/A self call N/A self request N/A self response N/A N/A N/A N/A self _thread start N/A N/A self _state N/A RPC RUNNING N/A _WaitImpl N/A N/A self N/A N/A N/A  Waiting on an RPC call thread to complete  N/A N/A N/A N/A N/A N/A self _thread join N/A N/A N/A Exception N/A N/A N/A _ N/A self _exception N/A self _traceback N/A N/A sys exc_info N/A N/A N/A self _Callback N/A N/A self _state N/A RPC FINISHING N/A 
    if self.callback:
      try:
        self.callback()
      except:
        _, self._exception, self._traceback = sys.exc_info()
        self._exception._appengine_apiproxy_rpc = self
        raise
     N/A True N/A N/A