Changeset 53:f4e0af8c281d in documentViewer
- Timestamp:
- Apr 20, 2007, 2:46:05 PM (18 years ago)
- Branch:
- default
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
documentViewer.py
r52 r53 611 611 self._setObject(id, DocumentViewerTemplate(id)) 612 612 ob = getattr(self, id) 613 ob.pt_edit(open(os.path.join(package_home(globals()),'zpt/viewer_main.zpt')).read(),None) 613 txt=file(os.path.join(package_home(globals()),'zpt/viewer_main.zpt'),'r').read() 614 logging.info("txt %s:"%txt) 615 ob.pt_edit(txt,"text/html") 614 616 if title: 615 617 ob.pt_setTitle(title) -
zpt/head_main.zpt
r49 r53 6 6 <tal:x tal:condition="python:viewMode=='text'"> 7 7 <a target="_blank" tal:attributes="href string:${here/imageViewerUrl}fn=${docinfo/imagePath}&pn=${pageinfo/current}">view image</a> 8 <a target="_blank" tal:attributes="href string:${here/textViewerUrl}/getPage?fn=${docinfo/imagePath}&_pn=${pageinfo/current}">show xml</a> 8 9 </tal:x> 9 10 </tal:block>
Note: See TracChangeset
for help on using the changeset viewer.