- change calling convention for Add slightly; if the Add function for
[plcapi.git] / PLC / Methods / BootUpdateNode.py
1 from PLC.Method import Method
2 from PLC.Parameter import Parameter, Mixed
3 from PLC.Auth import PasswordAuth, BootAuth
4
5 class BootUpdateNode(Method):
6     """
7     Allows the calling node to update its own record. Only the primary
8     network can be updated, and the node IP cannot be changed.
9
10     Returns 1 if updated successfully.
11     """
12
13     accepts = [BootAuth(), dict]
14     returns = Parameter(int, '1 if successful')
15
16     def call(self, auth, update_fields):
17         # XXX
18         return 1