[Zope-Checkins] CVS: Zope3/lib/python/Zope/App/OFS/Content/File/Views/Browser - FileView.py:1.1.2.4 __init__.py:1.1.2.4

Guido van Rossum guido@python.org
Tue, 4 Jun 2002 14:59:51 -0400


Update of /cvs-repository/Zope3/lib/python/Zope/App/OFS/Content/File/Views/Browser
In directory cvs.zope.org:/tmp/cvs-serv1575/lib/python/Zope/App/OFS/Content/File/Views/Browser

Modified Files:
      Tag: Zope-3x-branch
	FileView.py __init__.py 
Log Message:
Whoever (not Jeremy :-) checks in files from Windows with the CRLF
markers still left in, please stop doing this.  It screws up the
checkouts for everyone else (including Windows users who use the
command line cvs tools).  Hint: some wincvs do this.



=== Zope3/lib/python/Zope/App/OFS/Content/File/Views/Browser/FileView.py 1.1.2.3 => 1.1.2.4 ===
 # 
 ##############################################################################
-"""
-
+"""
+
 $Id$
 """
-
-from Zope.Publisher.Browser.AttributePublisher import AttributePublisher
-
-
-class FileView(AttributePublisher):
-
-    __implements__ = AttributePublisher.__implements__
-    
-    def __init__( self, zptpage ):
-        self._zptpage = zptpage
-
-
-    def index(self, REQUEST=None):
-        """Call the File"""
-        if REQUEST is not None:
-            REQUEST.getResponse().setHeader('Content-Type',
-                                       self.getContext().getContentType())
-            REQUEST.getResponse().setHeader('Content-Length',
-                                       self.getContext().getSize())
-
-        return self.getContext().getData()
-        
-
-    def getContext( self ):
-        return self._zptpage
-        
+
+from Zope.Publisher.Browser.AttributePublisher import AttributePublisher
+
+
+class FileView(AttributePublisher):
+
+    __implements__ = AttributePublisher.__implements__
+    
+    def __init__( self, zptpage ):
+        self._zptpage = zptpage
+
+
+    def index(self, REQUEST=None):
+        """Call the File"""
+        if REQUEST is not None:
+            REQUEST.getResponse().setHeader('Content-Type',
+                                       self.getContext().getContentType())
+            REQUEST.getResponse().setHeader('Content-Length',
+                                       self.getContext().getSize())
+
+        return self.getContext().getData()
+        
+
+    def getContext( self ):
+        return self._zptpage
+        


=== Zope3/lib/python/Zope/App/OFS/Content/File/Views/Browser/__init__.py 1.1.2.3 => 1.1.2.4 ===
 # 
 ##############################################################################
-"""
+"""
 
 $Id$
-"""
+"""