Mercurial > hg > documentViewer
comparison MpdlXmlTextServer.py @ 559:eabfbad6aeb4
"extended" layer for index view and some bugfixes.
author | casties |
---|---|
date | Fri, 28 Sep 2012 18:50:59 +0200 |
parents | c56bc63436de |
children | 9255acc4518d |
comparison
equal
deleted
inserted
replaced
558:6ab436383fca | 559:eabfbad6aeb4 |
---|---|
48 | 48 |
49 def getServerData(self, method, data=None): | 49 def getServerData(self, method, data=None): |
50 """returns result from text server for method+data""" | 50 """returns result from text server for method+data""" |
51 url = self.serverUrl+method | 51 url = self.serverUrl+method |
52 return getHttpData(url,data,timeout=self.timeout) | 52 return getHttpData(url,data,timeout=self.timeout) |
53 | |
54 | |
55 def getTextDownloadUrl(self, type='xml', docinfo=None): | |
56 """returns a URL to download the current text""" | |
57 docpath = docinfo.get('textURLPath', None) | |
58 if not docpath: | |
59 return None | |
60 | |
61 docpath = docpath.replace('.xml','.'+type) | |
62 url = '%sgetDoc?doc=%s'%(self.serverUrl.replace('interface/',''), docpath) | |
63 return url | |
53 | 64 |
54 | 65 |
55 def getPlacesOnPage(self, docinfo=None, pn=None): | 66 def getPlacesOnPage(self, docinfo=None, pn=None): |
56 """Returns list of GIS places of page pn""" | 67 """Returns list of GIS places of page pn""" |
57 docpath = docinfo.get('textURLPath',None) | 68 docpath = docinfo.get('textURLPath',None) |