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

# Class BrowserMessageBox

source code

    object --+
             |
    MessageBox --+
                 |
                BrowserMessageBox

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

Instance Methods | [hide private]
__init__(self, context) Initialization method. | source code
list |
get_unread(self, min_priority=INFO) Retrieve unread messages. | source code
Inherited from `MessageBox`: `get_messages`

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

Method Details | [hide private]

### __init__(self, context) (Constructor) | source code
Initialization method. Parameters: `context` (Persistent) - The object being adapted. Must have access to the current request object via acquisition. Overrides: object.__init__

### get_unread(self, min_priority=INFO) | source code
Retrieve unread messages. Parameters: `min_priority` - Optional minimum priority of messages to be returned; one of INFO, WARNING, CRITICAL Returns: list A list of objects implementing IMessage. Overrides: MessageBox.get_unread (inherited documentation)