diff MpdlXmlTextServer.py @ 166:ffb5c62bd459

characterNormalization
author abukhman
date Tue, 24 Aug 2010 14:34:32 +0200
parents 820a2a4b23c3
children 7e2b97941a66
line wrap: on
line diff
--- a/MpdlXmlTextServer.py	Tue Aug 24 14:11:26 2010 +0200
+++ b/MpdlXmlTextServer.py	Tue Aug 24 14:34:32 2010 +0200
@@ -42,8 +42,8 @@
         """get search list"""
         docpath = docinfo['textURLPath'] 
         url = docinfo['url']
-        logging.debug("documentViewer (gettoc) docpath: %s"%(docpath))
-        logging.debug("documentViewer (gettoc) url: %s"%(url))
+        #logging.debug("documentViewer (gettoc) docpath: %s"%(docpath))
+        #logging.debug("documentViewer (gettoc) url: %s"%(url))
         pagesize = pageinfo['queryPageSize']
         pn = pageinfo['searchPN']
         sn = pageinfo['sn']
@@ -253,12 +253,12 @@
          numdivs = pagedom.xpath("//div[@class='queryResultHits']")
          tocSearch = int(getTextFromNode(numdivs[0]))
          tc=int((tocSearch/10)+1)
-         logging.debug("documentViewer (gettoc) tc: %s"%(tc))
+         #logging.debug("documentViewer (gettoc) tc: %s"%(tc))
          return tc
 
     def getToc(self, mode="text", docinfo=None):
         """loads table of contents and stores in docinfo"""
-        logging.debug("documentViewer (gettoc) mode: %s"%(mode))
+        #logging.debug("documentViewer (gettoc) mode: %s"%(mode))
         if mode == "none":
             return docinfo        
         if 'tocSize_%s'%mode in docinfo: