Mercurial > hg > documentViewer
comparison MpdlXmlTextServer.py @ 180:41a461d62af0
*** empty log message ***
| author | abukhman |
|---|---|
| date | Thu, 23 Sep 2010 17:29:06 +0200 |
| parents | ac715583385b |
| children | bc44cf97dfdc |
comparison
equal
deleted
inserted
replaced
| 179:ac715583385b | 180:41a461d62af0 |
|---|---|
| 247 def getQuery (self, docinfo=None, pageinfo=None, query=None, queryType=None, pn=1): | 247 def getQuery (self, docinfo=None, pageinfo=None, query=None, queryType=None, pn=1): |
| 248 """number of""" | 248 """number of""" |
| 249 docpath = docinfo['textURLPath'] | 249 docpath = docinfo['textURLPath'] |
| 250 pagesize = pageinfo['queryPageSize'] | 250 pagesize = pageinfo['queryPageSize'] |
| 251 pn = pageinfo['searchPN'] | 251 pn = pageinfo['searchPN'] |
| 252 query =pageinfo['query'] | 252 #query =pageinfo['query'] |
| 253 queryType =pageinfo['queryType'] | 253 queryType =pageinfo['queryType'] |
| 254 tocSearch = 0 | 254 tocSearch = 0 |
| 255 tocDiv = None | 255 tocDiv = None |
| 256 | 256 |
| 257 pagexml = self.getServerData("doc-query.xql","document=%s&mode=%s&queryType=%s&query=%s&queryResultPageSize=%s&queryResultPN=%s"%(docpath, 'text', queryType, urllib.quote(query), pagesize, pn)) | 257 pagexml = self.getServerData("doc-query.xql","document=%s&mode=%s&queryType=%s&query=%s&queryResultPageSize=%s&queryResultPN=%s"%(docpath, 'text', queryType, urllib.quote(query), pagesize, pn)) |
