Initial checkin of new API implementation
[plcapi.git] / PLC / Methods / system / listMethods.py
1 from PLC.Method import Method
2 from PLC.Parameter import Parameter
3 import PLC.Methods
4
5 class listMethods(Method):
6     """
7     This method lists all the methods that the XML-RPC server knows
8     how to dispatch.
9     """
10
11     roles = []
12     accepts = []
13     returns = Parameter(list, 'List of methods')
14
15     def __init__(self, api):
16         Method.__init__(self, api)
17         self.name = "system.listMethods"
18
19     def call(self):
20         return self.api.methods