rPath Appliance Platform:Plugin Notifications
From rPath Wiki
rPath Appliance Platform plugins are capable of performing notification on important events. To develop a plugin that generates notifications, the plugin must register the types of notifications to send and the properties of the notifications.
The web component of the plugin should use a Python dictionary field named notifications that maps a notification type (specified as an integer), to a tuple of two elements:
- A dictionary mapping the notification method to the kid template used to format the message
- A string describing the notification
Currently, email is the only defined notification method. To send a notification from the plugin, use self.notify(type, message). The second argument should be the message string to be sent out or input to a kid template (if defined).
