set svn:keywords property for proper keywords expansion
[plcapi.git] / doc / DocBook.py
index 0185ab4..254e99e 100755 (executable)
@@ -6,17 +6,15 @@
 # Mark Huang <mlhuang@cs.princeton.edu>
 # Copyright (C) 2006 The Trustees of Princeton University
 #
-# $Id: DocBook.py,v 1.3 2006/10/25 19:35:36 mlhuang Exp $
+# $Id$
 #
 
 import xml.dom.minidom
 from xml.dom.minidom import Element, Text
 import codecs
 
-from PLC.API import PLCAPI
 from PLC.Method import *
-
-api = PLCAPI(None)
+import DocBookLocal
 
 # xml.dom.minidom.Text.writexml adds surrounding whitespace to textual
 # data when pretty-printing. Override this behavior.
@@ -105,8 +103,9 @@ class paramElement(Element):
             for subparam in param:
                 itemizedlist.appendChild(paramElement(None, subparam))
 
-for method in api.methods:
-    func = api.callable(method)
+api_func_list = DocBookLocal.get_func_list()
+for func in api_func_list:
+    method = func.name
 
     if func.status == "deprecated":
         continue