changeset 487:8fd6f26fe29e elementtree

more new templates
author casties
date Tue, 23 Aug 2011 15:05:11 +0200
parents f2c5417b7ff4
children ec3d848fe9e8
files documentViewer.py
diffstat 1 files changed, 3 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/documentViewer.py	Mon Aug 22 17:00:28 2011 +0200
+++ b/documentViewer.py	Tue Aug 23 15:05:11 2011 +0200
@@ -1,8 +1,8 @@
 from OFS.Folder import Folder
-from OFS.Image import File
 from Products.PageTemplates.ZopePageTemplate import ZopePageTemplate
 from Products.PageTemplates.PageTemplateFile import PageTemplateFile
-from Products.ZSimpleFile import ZSimpleFile
+from App.ImageFile import ImageFile
+#from Products.ZSimpleFile.ZSimpleFile import ZSimpleFile
 from AccessControl import ClassSecurityInfo
 from AccessControl import getSecurityManager
 from Globals import package_home
@@ -140,7 +140,7 @@
     head_main = PageTemplateFile('zpt/head_main', globals())
     info_xml = PageTemplateFile('zpt/info_xml', globals())
     # TODO: can this be nicer?
-    docuviewer_css = ZSimpleFile(content_type='text/css',filename='css/docuviewer.css', id='docuviewer_css',_prefix=globals())
+    docuviewer_css = ImageFile('css/docuviewer.css',globals())
     
     
     thumbs_main_rss = PageTemplateFile('zpt/thumbs_main_rss', globals())