Changeset 440:3940845b2474 in documentViewer for MpdlXmlTextServer.py


Ignore:
Timestamp:
Apr 19, 2011, 2:21:32 PM (14 years ago)
Author:
abukhman
Branch:
default
Message:

* empty log message *

File:
1 edited

Legend:

Unmodified
Added
Removed
  • MpdlXmlTextServer.py

    r438 r440  
    2121    manage_changeMpdlXmlTextServerForm = PageTemplateFile("zpt/manage_changeMpdlXmlTextServer", globals())
    2222       
    23     def __init__(self,id,title="",serverUrl="http://mpdl-proto.mpiwg-berlin.mpg.de/mpdl/interface/", serverName=None, timeout=40):
     23    def __init__(self,id,title="",serverUrl="http://mpdl-test.mpiwg-berlin.mpg.de/mpdl/interface/", serverName=None, timeout=40):
    2424    #def __init__(self,id,title="",serverUrl="http://mpdl-test.mpiwg-berlin.mpg.de:30030/mpdl/interface/", serverName=None, timeout=40):   
    2525       
     
    205205        dom = Parse(pagexml)
    206206        #original Pages
    207         pagedivs = dom.xpath("//div[@class='pageNumberOrig']")
     207        pagedivs = dom.xpath("//div[@class='pageNumberOrig']")       
    208208        """if pagedivs == dom.xpath("//div[@class='pageNumberOrig']"):
    209209            if len(pagedivs)>0:
     
    349349                        # is link with href
    350350                        href = hrefNode.nodeValue
    351                         if href.startswith('lt/lex.xql'):
     351                        if href.startswith('../lt/wordInfo.xql'):
    352352                            # is pollux link
    353353                            selfurl = self.absolute_url()
    354354                            # change href
    355                             hrefNode.nodeValue = href.replace('lt/lex.xql','%s/template/head_main_voc'%selfurl)
     355                            hrefNode.nodeValue = href.replace('../lt/wordInfo.xql','%s/template/voc'%selfurl)
    356356                            # add target
    357357                            l.setAttributeNS(None, 'target', '_blank')
     
    484484        return text
    485485   
    486     def manage_changeMpdlXmlTextServer(self,title="",serverUrl="http://mpdl-proto.mpiwg-berlin.mpg.de/mpdl/interface/",timeout=40,RESPONSE=None):
     486    def manage_changeMpdlXmlTextServer(self,title="",serverUrl="http://mpdl-test.mpiwg-berlin.mpg.de/mpdl/interface/",timeout=40,RESPONSE=None):
    487487    #def manage_changeMpdlXmlTextServer(self,title="",serverUrl="http://mpdl-test.mpiwg-berlin.mpg.de:30030/mpdl/interface/",timeout=40,RESPONSE=None):
    488488        """change settings"""
     
    499499    return pt()
    500500
    501 def manage_addMpdlXmlTextServer(self,id,title="",serverUrl="http://mpdl-proto.mpiwg-berlin.mpg.de/mpdl/interface/",timeout=40,RESPONSE=None):
     501def manage_addMpdlXmlTextServer(self,id,title="",serverUrl="http://mpdl-test.mpiwg-berlin.mpg.de/mpdl/interface/",timeout=40,RESPONSE=None):
    502502#def manage_addMpdlXmlTextServer(self,id,title="",serverUrl="http://mpdl-test.mpiwg-berlin.mpg.de:30030/mpdl/interface/",timeout=40,RESPONSE=None):   
    503503    """add zogiimage"""
Note: See TracChangeset for help on using the changeset viewer.