Back to index

system-config-printer  1.3.9+20120706
Public Member Functions | Private Attributes
asyncconn._AsyncMethodCall Class Reference

List of all members.

Public Member Functions

def __init__
def __del__
def destroy
def run
def reply_handler
def error_handler
def auth_handler

Private Attributes

 _fn
 _reply_handler
 _error_handler
 _auth_handler
 _destroyed
 _reply_data
 _error_data
 _auth_data

Detailed Description

Definition at line 57 of file asyncconn.py.


Constructor & Destructor Documentation

def asyncconn._AsyncMethodCall.__init__ (   self,
  fn,
  reply_handler,
  error_handler,
  auth_handler 
)

Definition at line 58 of file asyncconn.py.

00058 
00059     def __init__ (self, fn, reply_handler, error_handler, auth_handler):
00060         self._fn = fn
00061         self._reply_handler = reply_handler
00062         self._error_handler = error_handler
00063         self._auth_handler = auth_handler
00064         self._destroyed = False
00065         debugprint ("+%s" % self)

Definition at line 66 of file asyncconn.py.

00066 
00067     def __del__ (self):
00068         debugprint ("-%s" % self)


Member Function Documentation

def asyncconn._AsyncMethodCall.auth_handler (   self,
  args 
)

Definition at line 99 of file asyncconn.py.

00099 
00100     def auth_handler (self, *args):
00101         if not self._destroyed:
00102             self._auth_handler (self, self.auth_data, *args)

Here is the caller graph for this function:

Definition at line 69 of file asyncconn.py.

00069 
00070     def destroy (self):
00071         if self._destroyed:
00072             return
00073 
00074         debugprint ("DESTROY: %s" % self)
00075         self._destroyed = True
00076         self._reply_handler = None
00077         self._error_handler = None
00078         self._auth_handler = None
00079         self._reply_data = None
00080         self._error_data = None
00081         self._auth_data = None

Here is the caller graph for this function:

def asyncconn._AsyncMethodCall.error_handler (   self,
  args 
)

Definition at line 95 of file asyncconn.py.

00095 
00096     def error_handler (self, *args):
00097         if not self._destroyed:
00098             self._error_handler (self, self._error_data, *args)

Here is the caller graph for this function:

def asyncconn._AsyncMethodCall.reply_handler (   self,
  args 
)

Definition at line 91 of file asyncconn.py.

00091 
00092     def reply_handler (self, *args):
00093         if not self._destroyed:
00094             self._reply_handler (self, self._reply_data, *args)

Here is the caller graph for this function:

def asyncconn._AsyncMethodCall.run (   self,
  args,
  kwds 
)

Definition at line 82 of file asyncconn.py.

00082 
00083     def run (self, *args, **kwds):
00084         self._reply_data = kwds.get ('reply_handler')
00085         self._error_data = kwds.get ('error_handler')
00086         self._auth_data = kwds.get ('auth_handler')
00087         kwds['reply_handler'] = self.reply_handler
00088         kwds['error_handler'] = self.error_handler
00089         kwds['auth_handler'] = self.auth_handler
00090         self._fn (*args, **kwds)

Here is the call graph for this function:


Member Data Documentation

Definition at line 80 of file asyncconn.py.

Definition at line 62 of file asyncconn.py.

Definition at line 63 of file asyncconn.py.

Definition at line 79 of file asyncconn.py.

Definition at line 61 of file asyncconn.py.

Definition at line 59 of file asyncconn.py.

Definition at line 78 of file asyncconn.py.

Definition at line 60 of file asyncconn.py.


The documentation for this class was generated from the following file: