Changeset 291:3b54df7ca88e in documentViewer


Ignore:
Timestamp:
Oct 14, 2010, 12:08:43 PM (14 years ago)
Author:
abukhman
Branch:
default
Message:

* empty log message *

File:
1 edited

Legend:

Unmodified
Added
Removed
  • MpdlXmlTextServer.py

    r290 r291  
    148148        selfurl = self.absolute_url()
    149149        pn = pageinfo['current']
     150        hrefList=[]
    150151       
    151152        text=self.getServerData("xpath.xql", "document=%s&xpath=%s&pn=%s"%(docinfo['textURLPath'],xpath,pn))
     
    155156            hrefNode= l.getAttributeNodeNS(None, u"id")
    156157            href= hrefNode.nodeValue
    157            
     158            hrefList.add(href)
     159            #href=href.href
    158160            #href = ",".join(href)
    159             logging.debug("getGisPlaces :%s"%(href))
     161            logging.debug("getGisPlaces :%s"%(hrefList))
    160162       
    161163            #return ";".join(["%s=%s" % (href, href) for href, href in params.items()])
    162         logging.debug("getGisPlaces :%s"%(href))
     164        #logging.debug("getGisPlaces :%s"%(href))
    163165                #if href.startswith('id='):
    164166                    #hrefNode.nodeValue = href.replace('id=',"?")   
    165167                    #logging.debug("documentViewer getGisPlaces (characterNormalization) hrefNode.nodeValue:%s"%(hrefNode.nodeValue))
    166168        #logging.debug("getGisPlaces :%s"%(href))                           
    167         return href
     169        return hrefList
    168170        #return "no text here"
    169171   
Note: See TracChangeset for help on using the changeset viewer.