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, e:
18 bad_apis.append((method,e))
20 DocBook(good_apis).Process()
23 sys.stderr.write("UNEXPECTED: There are %d non-callable methods:\n"%(len(bad_apis)))
24 for bad_api,e in bad_apis:
25 sys.stderr.write("\t%s:%s\n" % (bad_api,e))