Home | Trees | Index | Help |
---|
Package spoon :: Package messaging :: Module decorators :: Class receive |
|
object
--+
|
receive
The receive decorator can be used to decorate functions and static methods (NOT methods of class instances) that should receive messages of a given type. In the case of static methods, be sure to put the staticmethod decorator first.
When a message of the given type is received, the function will be called with (srcNodeId, message type, attached object) as the arguments to it.Method Summary | |
---|---|
| |
__call__(self,
handler)
| |
Inherited from object | |
x.__delattr__('name') <==> del x.name | |
x.__getattribute__('name') <==> x.name | |
x.__hash__() <==> hash(x) | |
T.__new__(S, ...) -> a new object with type S, a subtype of T | |
helper for pickle | |
helper for pickle | |
x.__repr__() <==> repr(x) | |
x.__setattr__('name', value) <==> x.name = value | |
x.__str__() <==> str(x) |
Method Details |
---|
__init__(self,
msgtype)
|
Home | Trees | Index | Help |
---|
Generated by Epydoc 2.1 on Sun Nov 26 15:33:58 2006 | http://epydoc.sf.net |