3 from PLC.API import PLCAPI
4 from PLC.Faults import PLCInvalidAPIMethod
5 from DocBook import DocBook
9 methods = api.all_methods
12 for method in methods:
14 good_api = api.callable(method)
15 good_apis.append(good_api)
16 except PLCInvalidAPIMethod, e:
17 bad_apis.append((method,e))
19 DocBook(good_apis).Process()
22 sys.stderr.write("UNEXPECTED: There are %d non-callable methods:\n")
23 for bad_api,e in bad_apis:
24 sys.stderr.write("\t%s:%s\n" % (bad_api,e))