Changeset 440:3940845b2474 in documentViewer for MpdlXmlTextServer.py
- Timestamp:
- Apr 19, 2011, 2:21:32 PM (14 years ago)
- Branch:
- default
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
MpdlXmlTextServer.py
r438 r440 21 21 manage_changeMpdlXmlTextServerForm = PageTemplateFile("zpt/manage_changeMpdlXmlTextServer", globals()) 22 22 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): 24 24 #def __init__(self,id,title="",serverUrl="http://mpdl-test.mpiwg-berlin.mpg.de:30030/mpdl/interface/", serverName=None, timeout=40): 25 25 … … 205 205 dom = Parse(pagexml) 206 206 #original Pages 207 pagedivs = dom.xpath("//div[@class='pageNumberOrig']") 207 pagedivs = dom.xpath("//div[@class='pageNumberOrig']") 208 208 """if pagedivs == dom.xpath("//div[@class='pageNumberOrig']"): 209 209 if len(pagedivs)>0: … … 349 349 # is link with href 350 350 href = hrefNode.nodeValue 351 if href.startswith(' lt/lex.xql'):351 if href.startswith('../lt/wordInfo.xql'): 352 352 # is pollux link 353 353 selfurl = self.absolute_url() 354 354 # 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) 356 356 # add target 357 357 l.setAttributeNS(None, 'target', '_blank') … … 484 484 return text 485 485 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): 487 487 #def manage_changeMpdlXmlTextServer(self,title="",serverUrl="http://mpdl-test.mpiwg-berlin.mpg.de:30030/mpdl/interface/",timeout=40,RESPONSE=None): 488 488 """change settings""" … … 499 499 return pt() 500 500 501 def manage_addMpdlXmlTextServer(self,id,title="",serverUrl="http://mpdl- proto.mpiwg-berlin.mpg.de/mpdl/interface/",timeout=40,RESPONSE=None):501 def manage_addMpdlXmlTextServer(self,id,title="",serverUrl="http://mpdl-test.mpiwg-berlin.mpg.de/mpdl/interface/",timeout=40,RESPONSE=None): 502 502 #def manage_addMpdlXmlTextServer(self,id,title="",serverUrl="http://mpdl-test.mpiwg-berlin.mpg.de:30030/mpdl/interface/",timeout=40,RESPONSE=None): 503 503 """add zogiimage"""
Note: See TracChangeset
for help on using the changeset viewer.