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

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

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

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__