Package flumotion :: Package common :: Module messages :: Class Message
[show private | hide private]
[frames | no frames]

Class Message

Jellyable --+        
            |        
 Serializable --+    
                |    
         Copyable --+
                    |
     FancyEqMixin --+
                    |
  Unjellyable --+   |
                |   |
       RemoteCopy --+
                    |
                   Message


I am a message to be shown in a UI.
Method Summary
  __init__(self, level, translatable, debug, id, priority)
  __repr__(self)
  add(self, translatable)
    Inherited from Copyable
  getStateToCopy(self)
Gather state to send when I am serialized for a peer.
  getStateToCopyFor(self, perspective)
Gather state to send when I am serialized for a particular perspective.
  getTypeToCopy(self)
Determine what type tag to send for me.
  getTypeToCopyFor(self, perspective)
Determine what type tag to send for me.
  jellyFor(self, jellier)
Assemble type tag and state to copy for this broker.
    Inherited from Serializable
  processUniqueID(self)
Return an ID which uniquely represents this object for this process.
    Inherited from Jellyable
  getStateFor(self, jellier)
    Inherited from RemoteCopy
  setCopyableState(self, state)
I will be invoked with the state to copy locally.
  unjellyFor(self, unjellier, jellyList)
    Inherited from Unjellyable
  setStateFor(self, unjellier, state)
    Inherited from FancyEqMixin
  __eq__(self, other)

Class Variable Summary
list compareAttributes = ['level', 'translatables', 'debug', ...
    Inherited from Jellyable
tuple __implements__ = (<class 'twisted.spread.interfaces.IJel...

Method Details

__init__(self, level, translatable, debug=None, id=None, priority=50)
(Constructor)

Parameters:
level - ERROR, WARNING or INFO
translatable - a translatable possibly with markup for linking to documentation or running commands.
debug - further, untranslated, debug information, not always shown
priority - priority compared to other messages of the same level

Class Variable Details

compareAttributes

Type:
list
Value:
['level', 'translatables', 'debug', 'id', 'priority']                  

Generated by Epydoc 2.1 on Sun Mar 5 11:22:41 2006 http://epydoc.sf.net