Package ZenWidgets :: Module messaging :: Class UserMessageBox
[hide private]
[frames] | no frames]

Class UserMessageBox

source code

object --+    
         |    
MessageBox --+
             |
            UserMessageBox

Adapter for all persistent objects. Provides a method, get_messages, that retrieves Message objects from the current user's MessageQueue.

Instance Methods [hide private]
 
__init__(self, context, user=None)
Initialization method.
source code

Inherited from MessageBox: get_messages, get_unread

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

Class Variables [hide private]

Inherited from MessageBox: messagebox

Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

__init__(self, context, user=None)
(Constructor)

source code 
Initialization method.
Parameters:
  • context (Persistent) - The object being adapted. Must have access to the dmd via acquisition.
  • user (str) - Optional username corresponding to the queue from which messages will be retrieved. If left as None, the current user's queue will be used.
Overrides: object.__init__