add monitor documentation generation stubs.
[monitor.git] / docs / DocBookLocal.py
diff --git a/docs/DocBookLocal.py b/docs/DocBookLocal.py
new file mode 100755 (executable)
index 0000000..62853a8
--- /dev/null
@@ -0,0 +1,20 @@
+#!/usr/bin/env python
+
+# PATHS to be set by the build system
+# this is in ..
+import api_calls
+# in PLCAPI/doc
+from DocBook import DocBook
+
+def api_methods():
+    api_function_list = []
+    for func in dir(api_calls):
+        try:
+            f = api_calls.__getattribute__(func)
+            if 'group' in f.__dict__.keys():
+                api_function_list += [api_calls.__getattribute__(func)]
+        except:
+            pass
+    return api_function_list
+
+DocBook(api_methods ()).Process()