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

Class CommClientMixIn

source code

Known Subclasses:
CommunicationClientBase, CommunicationClientThreaded

The mixin to CommunicationClient{,Threaded}

Instance Methods [hide private]
 
get(self, name, auth=None)
Get a local representation of the remote object with ID |name|.
source code
 
__getitem__(self, name)
Get a local representation of the remote object with ID |name|.
source code
 
getobj(self, name, auth=None)
Get a local representation of the remote object with ID |name|
source code
 
getconn(self)
Get a communication object
source code
 
putconn(self, conn)
Return a communication Object
source code
 
handleRequest(self, conn, request, send_method)
Common code to getAttr, setAttr and callMethod
source code
 
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
source code
 
setAttr(self, objname, attrname, value, sendtype='VAL', local_server=None, auth=None)
Set the attribute |attrname| to |value| in the object |objname|.
source code
 
byeRequest(self)
Send a bye request
source code
 
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.
source code
 
callMethod(self, objname, attrname, args=(), kwargs={}, rettype='VAL', local_server=None, auth=None, extra=None)
Call a method.
source code
 
get_request_local_server(self, local_server)
Return a local_server tuple to make the request
source code
 
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
source code
Method Details [hide private]

get(self, name, auth=None)

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

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

source code 
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

delObject(self, objname, auth=None)

source code 
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

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

source code 
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