You are not logged in Log in Join
You are here: Home » Members » efge » i18n » Unicode0.6.diff-2.5.1-cmf-1.3-bugfix » View File

Log in
Name

Password

 

Unicode0.6.diff-2.5.1-cmf-1.3-bugfix

File details
Size
1 K
File type
text/plain

File contents

Index: CMFCore/FSPageTemplate.py
===================================================================
RCS file: /cvs-repository/CMF/CMFCore/FSPageTemplate.py,v
retrieving revision 1.8.8.3
retrieving revision 1.8.8.5
diff -u -r1.8.8.3 -r1.8.8.5
--- CMFCore/FSPageTemplate.py	1 Aug 2002 19:07:55 -0000	1.8.8.3
+++ CMFCore/FSPageTemplate.py	5 Sep 2002 20:56:18 -0000	1.8.8.5
@@ -159,10 +159,10 @@
             response = self.REQUEST.RESPONSE
         except AttributeError:
             response = None
+        # Read file first to get a correct content_type default value.
+        self._updateFromFS()
         # call "inherited"
         result = self._ZPT_exec( bound_names, args, kw )
-        if response is not None:
-            response.setHeader( 'content-type', self.content_type )
         return result
  
     # Copy over more methods