Package flumotion :: Package common :: Module messages :: Class Result
[hide private]

Class Result

source code

 twisted.spread.jelly.Jellyable --+        
                                  |        
twisted.spread.flavors.Serializable --+    
                                      |    
        twisted.spread.flavors.Copyable --+
                                          |
   twisted.spread.jelly.Unjellyable --+   |
                                      |   |
      twisted.spread.flavors.RemoteCopy --+
                                          |
                                         Result

I am used in worker checks to return a result.

Instance Methods [hide private]
 
__init__(self) source code
 
succeed(self, value)
Make the result be successful, setting the given result value.
source code
 
add(self, message)
Add a message to the result.
source code

Inherited from twisted.spread.flavors.Copyable: getStateToCopy, getStateToCopyFor, getTypeToCopy, getTypeToCopyFor, jellyFor

Inherited from twisted.spread.flavors.Serializable: processUniqueID

Inherited from twisted.spread.jelly.Jellyable: __providedBy__, getStateFor

Inherited from twisted.spread.flavors.RemoteCopy: setCopyableState, unjellyFor

Inherited from twisted.spread.jelly.Unjellyable: setStateFor

Class Variables [hide private]

Inherited from twisted.spread.flavors.Copyable: __implemented__, __provides__

Instance Variables [hide private]
  failed
whether or not the check failed.
list of Message messages
list of messages
  value
the result value of the check
Method Details [hide private]

add(self, message)

source code 

Add a message to the result.

Parameters:

Instance Variable Details [hide private]

failed

whether or not the check failed. Typically triggered by adding an ERROR message to the result.