Changeset 559:eabfbad6aeb4 in documentViewer for MpdlXmlTextServer.py


Ignore:
Timestamp:
Sep 28, 2012, 4:50:59 PM (12 years ago)
Author:
casties
Branch:
default
Message:

"extended" layer for index view and some bugfixes.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • MpdlXmlTextServer.py

    r554 r559  
    5151        url = self.serverUrl+method
    5252        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
    5364
    5465
Note: See TracChangeset for help on using the changeset viewer.