# HG changeset patch # User casties # Date 1183131880 -7200 # Node ID c048559460a30e315bdbdf96768c978285775762 # Parent d928e4820b937a541f9929b1c387cdaf4f14449d fix problems with full text paths starting with /mpiwg/online diff -r d928e4820b93 -r c048559460a3 documentViewer.py --- a/documentViewer.py Fri Jun 22 18:04:24 2007 +0200 +++ b/documentViewer.py Fri Jun 29 17:44:40 2007 +0200 @@ -425,7 +425,10 @@ textUrl=getTextFromNode(textUrls[0]) if urlparse.urlparse(textUrl)[0]=="": #keine url textUrl=os.path.join(archivePath,textUrl) - + # fix URLs starting with /mpiwg/online + if textUrl.startswith("/mpiwg/online"): + textUrl = textUrl.replace("/mpiwg/online",'',1) + docinfo['textURL'] = textUrl presentationUrls=dom.xpath("//texttool/presentation")