Package SPyRO :: Module SPyRO :: Class CommClientMixIn
[show private | hide private]
[frames | no frames]

Class CommClientMixIn

Known Subclasses:
CommunicationClientBase, CommunicationClientThreaded

The mixin to CommunicationClient{,Threaded}
Method Summary
  __getitem__(self, name)
Get a local representation of the remote object with ID |name|.
  byeRequest(self)
Send a bye request
  callMethod(self, objname, attrname, args, kwargs, rettype, local_server, auth, extra)
Call a method.
  callMethodGuess(self, objname, attrname, args, kwargs, rettype, local_server, auth, extra)
Call a method, Guessing the best type to send arguments |objname| The object's name that has the method |attrname| The name of the object |args| The positional arguments of the call |kwargs| The keyword arguments of the call |rettype| The return type of the result |local_server| the local server to send arguments by reference |auth| The authorizing information to access the object |extra| Additional information to be added to the message
  delObject(self, objname, auth)
Get an attribute |attrname| of the object |objname| with the method to send the object |rettype|, the default is SendByValue.
  get(self, name, auth)
Get a local representation of the remote object with ID |name|.
  get_request_local_server(self, local_server)
Return a local_server tuple to make the request
  getAttr(self, objname, attrname, rettype, auth)
Get an attribute |attrname| of the object |objname| with the method to send the object |rettype|, the default is SendByValue |auth| The authorizing information to access the object
  getconn(self)
Get a communication object
  getobj(self, name, auth)
Get a local representation of the remote object with ID |name|
  handleRequest(self, conn, request, send_method)
Common code to getAttr, setAttr and callMethod
  putconn(self, conn)
Return a communication Object
  setAttr(self, objname, attrname, value, sendtype, local_server, auth)
Set the attribute |attrname| to |value| in the object |objname|.

Method Details

__getitem__(self, name)
(Indexing operator)

Get a local representation of the remote object with ID |name|.

byeRequest(self)

Send a bye request

callMethod(self, objname, attrname, args=(), kwargs={}, rettype='VAL', local_server=None, auth=None, extra=None)

Call a method. Every argument must be a ObjectWrapper with all the necessary information. |objname| The object's name that has the method |attrname| The name of the object |args| The positional arguments of the call |kwargs| The keyword arguments of the call |rettype| The return type of the result |local_server| the local server to send arguments by reference |auth| The authorizing information to access the object |extra| Extra general information to be passed in the message

callMethodGuess(self, objname, attrname, args=(), kwargs={}, rettype='VAL', local_server=None, auth=None, extra=None)

Call a method, Guessing the best type to send arguments |objname| The object's name that has the method |attrname| The name of the object |args| The positional arguments of the call |kwargs| The keyword arguments of the call |rettype| The return type of the result |local_server| the local server to send arguments by reference |auth| The authorizing information to access the object |extra| Additional information to be added to the message

delObject(self, objname, auth=None)

Get an attribute |attrname| of the object |objname| with the method to send the object |rettype|, the default is SendByValue. |auth| The authorizing information to access the object

get(self, name, auth=None)

Get a local representation of the remote object with ID |name|. Deprecated. Use |getobj| instead

get_request_local_server(self, local_server)

Return a local_server tuple to make the request

getAttr(self, objname, attrname, rettype='VAL', auth=None)

Get an attribute |attrname| of the object |objname| with the method to send the object |rettype|, the default is SendByValue |auth| The authorizing information to access the object

getconn(self)

Get a communication object

getobj(self, name, auth=None)

Get a local representation of the remote object with ID |name|

handleRequest(self, conn, request, send_method)

Common code to getAttr, setAttr and callMethod

putconn(self, conn)

Return a communication Object

setAttr(self, objname, attrname, value, sendtype='VAL', local_server=None, auth=None)

Set the attribute |attrname| to |value| in the object |objname|. The mode to send the value is |sendtype|. The |local_server| is used to send by reference |auth| The authorizing information to access the object

Generated by Epydoc 2.1 on Sat Oct 14 11:50:52 2006 http://epydoc.sf.net