Module worker :: Class MOCSender
[hide private]
[frames] | no frames]

Class MOCSender

source code


Class for sending mobile code to the clients

Instance Methods [hide private]
tuple
remote_run(*args, **kwargs)
Main enterance method, gets the code for the given codePath
source code
 
remote_computeMD5(*args, **kwargs)
Main enterance method, gets the code for the given codePath
source code
 
__init__(self, worker, clientRequest, session)
Initilizes the Mobile Code Sender Object (Inherited from mcremote.MCRemote)
source code
 
domain(self)
Returns the domain object of the current request's user. (Inherited from mcremote.MCRemote)
source code
 
log(self, msg)
Logs the given message to the application server. (Inherited from mcremote.MCRemote)
source code
 
sendMsg(*args, **kwargs)
Sends a message to clients connected to this domain. (Inherited from mcremote.MCRemote)
source code

Inherited from object: __delattr__, __format__, __getattribute__, __hash__, __new__, __reduce__, __reduce_ex__, __repr__, __setattr__, __sizeof__, __str__, __subclasshook__

Static Methods [hide private]
 
checkAuth(authCode)
Class method used as a decorator function to check user authorization. (Inherited from mcremote.MCRemote)
source code
Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

remote_run(*args, **kwargs)

source code 

Main enterance method, gets the code for the given codePath

Parameters:
  • codePath (string) - String representing the code path to be transferred
Returns: tuple
A tuple containing packaged remote code and its signature.
Decorators:
  • @defer.inlineCallbacks

remote_computeMD5(*args, **kwargs)

source code 

Main enterance method, gets the code for the given codePath

Parameters:
  • codePath (string) - String representing the code path to be transferred
Decorators:
  • @defer.inlineCallbacks