Mercurial > hg > documentViewer
comparison documentViewer.py @ 53:f4e0af8c281d
NEW - # 44: ECHO - vollst?ndige bibliographische Angabe
https://itgroup.mpiwg-berlin.mpg.de:8080/tracs/vision/ticket/44
minor bug
author | dwinter |
---|---|
date | Fri, 20 Apr 2007 16:46:05 +0200 |
parents | 92047eaa6272 |
children | f87b6844503b |
comparison
equal
deleted
inserted
replaced
52:92047eaa6272 | 53:f4e0af8c281d |
---|---|
608 REQUEST=None, submit=None): | 608 REQUEST=None, submit=None): |
609 "Add a Page Template with optional file content." | 609 "Add a Page Template with optional file content." |
610 | 610 |
611 self._setObject(id, DocumentViewerTemplate(id)) | 611 self._setObject(id, DocumentViewerTemplate(id)) |
612 ob = getattr(self, id) | 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 if title: | 616 if title: |
615 ob.pt_setTitle(title) | 617 ob.pt_setTitle(title) |
616 try: | 618 try: |
617 u = self.DestinationURL() | 619 u = self.DestinationURL() |
618 except AttributeError: | 620 except AttributeError: |