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

# Class ScriptMessageSender

source code

       object --+
                |
    MessageSender --+
                    |
                   ScriptMessageSender

Special message sender for use in scripts. Short-circuits sendToBrowser and sendToUser, since they don't really apply. sendToAll should still work fine though.

Instance Methods | [hide private]
sendToBrowser(self, title, body, priority=INFO, image=None) Create a message and store it on the session object. | source code
sendToUser(self, title, body, priority=INFO, image=None, user=None) Create a message and store it in the IMessageQueue of the user specified. | source code
Inherited from `MessageSender`: `__init__`, `sendToAll` Inherited from `object`: `__delattr__`, `__getattribute__`, `__hash__`, `__new__`, `__reduce__`, `__reduce_ex__`, `__repr__`, `__setattr__`, `__str__`

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

Method Details | [hide private]

### sendToBrowser(self, title, body, priority=INFO, image=None) | source code
Create a message and store it on the session object. Overrides: MessageSender.sendToBrowser (inherited documentation)

### sendToUser(self, title, body, priority=INFO, image=None, user=None) | source code
Create a message and store it in the IMessageQueue of the user specified. If no user is specified, use the queue of the current user. Overrides: MessageSender.sendToUser (inherited documentation)