1 from PLC.Method import Method
2 from PLC.Parameter import Parameter, Mixed
3 from PLC.Auth import Auth, BootAuth, SessionAuth
4 from PLC.Nodes import Node, Nodes
5 from PLC.Messages import Message, Messages
7 from PLC.Boot import notify_owners
9 class BootNotifyOwners(Method):
11 Notify the owners of the node, and/or support about an event that
12 happened on the machine.
14 Returns 1 if successful.
21 Message.fields['message_id'],
22 Parameter(int, "Notify PIs"),
23 Parameter(int, "Notify technical contacts"),
24 Parameter(int, "Notify support")
27 returns = Parameter(int, '1 if successful')
29 def call(self, auth, message_id, include_pis, include_techs, include_support):
30 assert isinstance(self.caller, Node)
31 notify_owners(self, self.caller, message_id, include_pis, include_techs, include_support)