3 from PLC.API import PLCAPI
4 from PLC.Faults import PLCInvalidAPIMethod
5 from DocBook import DocBook
9 methods = api.all_methods
13 for method in methods:
15 good_api = api.callable(method)
16 good_apis.append(good_api)
17 except PLCInvalidAPIMethod as exc:
18 bad_apis.append((method, exc))
20 DocBook(good_apis).Process()
23 sys.stderr.write("UNEXPECTED: There are %d non-callable methods:\n"
25 for method, exc in bad_apis:
26 sys.stderr.write("\tmethod=<%s> exc=%s\n" % (method, exc))