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.
- 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
user (str) - Optional username corresponding to the queue to which messages
should be sent. If left as None , the current user's
queue will be used.
|