1 from PLC.Method import Method
2 from PLC.Parameter import Parameter
4 class methodHelp(Method):
6 Returns help text if defined for the method passed, otherwise
7 returns an empty string.
11 accepts = [Parameter(str, 'Method name')]
12 returns = Parameter(str, 'Method help')
14 def __init__(self, api):
15 Method.__init__(self, api)
16 self.name = "system.methodHelp"
18 def call(self, method):
19 function = self.api.callable(method)
20 return function.help()