changeset 439:f549aafee32b

*** empty log message ***
author abukhman
date Mon, 21 Mar 2011 17:32:21 +0100
parents 3e78973773c0
children 3940845b2474
files documentViewer.py
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/documentViewer.py	Thu Mar 10 15:22:05 2011 +0100
+++ b/documentViewer.py	Mon Mar 21 17:32:21 2011 +0100
@@ -47,7 +47,7 @@
     """returns a string containing node as XML"""
     stream = cStringIO.StringIO()
     #logging.debug("BUF: %s"%(stream))
-    Ft.Xml.Domlette.PrettyPrint(node, stream=stream, encoding=encoding)
+    Ft.Xml.Domlette.Print(node, stream=stream, encoding=encoding)
     s = stream.getvalue()
     #logging.debug("BUF: %s"%(s))
     stream.close()
@@ -898,7 +898,7 @@
         pageinfo['viewMode'] = viewMode
         pageinfo['tocMode'] = tocMode
         pageinfo['characterNormalization'] = self.REQUEST.get('characterNormalization','reg')
-        pageinfo['optionToggle'] = self.REQUEST.get('optionToggle','')
+        pageinfo['optionToggle'] = self.REQUEST.get('optionToggle','1')
         pageinfo['query'] = self.REQUEST.get('query','') 
         pageinfo['queryType'] = self.REQUEST.get('queryType','')
         pageinfo['querySearch'] =self.REQUEST.get('querySearch', 'fulltext')