update basic documentation files.
[monitor.git] / docs / DocBookLocal.py
index 62853a8..d9d8164 100755 (executable)
@@ -2,17 +2,17 @@
 
 # PATHS to be set by the build system
 # this is in ..
-import api_calls
+from monitor_xmlrpc import MonitorXmlrpcServer as docobject
 # in PLCAPI/doc
 from DocBook import DocBook
 
 def api_methods():
     api_function_list = []
-    for func in dir(api_calls):
+    for func in dir(docobject):
         try:
-            f = api_calls.__getattribute__(func)
+            f = getattr(docobject,func)
             if 'group' in f.__dict__.keys():
-                api_function_list += [api_calls.__getattribute__(func)]
+                    api_function_list += [getattr(docobject,func)]
         except:
             pass
     return api_function_list