changeset 140:6345583d809a

Gis mode
author abukhman
date Wed, 11 Aug 2010 12:17:46 +0200
parents 8e42c3d2ce28
children 39c7d6164da8
files MpdlXmlTextServer.py documentViewer.py
diffstat 2 files changed, 8 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/MpdlXmlTextServer.py	Mon Aug 02 14:22:49 2010 +0200
+++ b/MpdlXmlTextServer.py	Wed Aug 11 12:17:46 2010 +0200
@@ -176,6 +176,13 @@
               if len(pagedivs) > 0:
                   pagenode = pagedivs[0]
                   return serializeNode(pagenode)
+        if mode == "gis":
+              # first div contains text
+              pagedivs = pagedom.xpath("/div")
+              if len(pagedivs) > 0:
+                  pagenode = pagedivs[0]
+                  return serializeNode(pagenode)
+                    
         if mode == "pureXml":
               # first div contains text
               pagedivs = pagedom.xpath("/div")
--- a/documentViewer.py	Mon Aug 02 14:22:49 2010 +0200
+++ b/documentViewer.py	Wed Aug 11 12:17:46 2010 +0200
@@ -119,6 +119,7 @@
     page_main_images = PageTemplateFile('zpt/page_main_images', globals())
     page_main_text = PageTemplateFile('zpt/page_main_text', globals())
     page_main_text_dict = PageTemplateFile('zpt/page_main_text_dict', globals())
+    page_main_gis =PageTemplateFile ('zpt/page_main_gis', globals())
     page_main_xml = PageTemplateFile('zpt/page_main_xml', globals())
     head_main = PageTemplateFile('zpt/head_main', globals())
     docuviewer_css = PageTemplateFile('css/docuviewer.css', globals())