Changeset 38:025d3b6cba51 in documentViewer
- Timestamp:
- Jun 13, 2006, 3:10:35 PM (18 years ago)
- Branch:
- default
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
documentViewer.py
r37 r38 8 8 from Ft.Xml.Domlette import NonvalidatingReader 9 9 from Ft.Xml.Domlette import PrettyPrint, Print 10 from Ft.Xml import EMPTY_NAMESPACE 10 from Ft.Xml import EMPTY_NAMESPACE, Parse 11 11 12 12 import Ft.Xml.XPath … … 208 208 metaUrl += "/index.meta" 209 209 try: 210 dom = NonvalidatingReader.parseUri(metaUrl) 210 # patch dirk encoding fehler treten dann nicht mehr auf 211 # dom = NonvalidatingReader.parseUri(metaUrl) 212 txt=urllib.urlopen(metaUrl).read() 213 dom = Parse(txt) 211 214 except: 212 215 zLOG.LOG("documentViewer (getIndexMata)", zLOG.INFO,"%s (%s)"%sys.exc_info()[0:2]) 213 raise IOError("Unable to read index meta from %s"%( url))216 raise IOError("Unable to read index meta from %s"%(metaUrl)) 214 217 215 218 return dom -
zpt/viewer_main.zpt
r36 r38 2 2 <head> 3 3 <link rel="stylesheet" href="template/docuviewer_css" type="text/css"> 4 <meta http-equiv="Content-Type" content="text/html; charset=utf-8"> 4 5 </head> 5 6 <body tal:condition="docinfo/numPages">
Note: See TracChangeset
for help on using the changeset viewer.