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

# Class MessageBox

source code

    object --+
             |
            MessageBox

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
Inherited from `object`: `__delattr__`, `__getattribute__`, `__hash__`, `__init__`, `__new__`, `__reduce__`, `__reduce_ex__`, `__repr__`, `__setattr__`, `__str__`

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

Properties | [hide private]
Inherited from `object`: `__class__`

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.