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

# Class BrowserMessage

source code

    object --+
             |
            BrowserMessage

A single message. Messages are stored on UserSettings and in the session object.

Instance Methods | [hide private]
__init__(self, title, body, priority=INFO, image=None) Initialization method. | source code
delete(self) Delete this message from the system. | source code
mark_as_read(self) | source code

Class Variables | [hide private]
| __parent__ = `None`
| title = `None`
| body = `None`
| timestamp = `None`
| priority = `None`
| _read = `False`

Method Details | [hide private]

### __init__(self, title, body, priority=INFO, image=None) (Constructor) | source code
Initialization method. Parameters: `title` (str) - The message title `body` (str) - The body of the message `priority` (int) - Message priority; one of INFO, WARNING, CRITICAL `image` (str) - Optional URL of an image to be displayed in the message Overrides: object.__init__