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

# Class MessageBox

source code

    object --+
             |
            MessageBox

Known Subclasses:
  - BrowserMessageBox
  - , UserMessageBox

Adapter for all persistent objects. Provides a method, get_messages, that retrieves `Message` objects.

Instance Methods | [hide private]
list |
get_unread(self, min_priority=INFO) Retrieve unread messages. | source code
list |
get_messages(self, min_priority=INFO) Retrieve messages from the current users's session object. | source code

Class Variables | [hide private]
| messagebox = `None`

Method Details | [hide private]

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

### get_messages(self, min_priority=INFO) | source code
Retrieve messages from the current users's session object. Parameters: `min_priority` (int) - Optional minimum priority of messages to be returned; one of INFO, WARNING, CRITICAL Returns: list A list of `Message` objects.