Package Products :: 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`

Class Variables | [hide private]
Inherited from `MessageBox`: `messagebox`

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__