[Zope-Checkins] CVS: Zope3/lib/python/Zope/App/OFS/File - File.py:1.1.2.2 IFile.py:1.1.2.2 NaiveFile.py:1.1.2.3

Tres Seaver tseaver@zope.com
Tue, 12 Feb 2002 15:56:32 -0500


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

Modified Files:
      Tag: Zope-3x-branch
	File.py IFile.py NaiveFile.py 
Log Message:


  - Normalize file headers.

  - Fix violations of "80 character" rule.


=== Zope3/lib/python/Zope/App/OFS/File/File.py 1.1.2.1 => 1.1.2.2 ===
+#
+# Copyright (c) 2001 Zope Corporation and Contributors. All Rights Reserved.
+#
 # This software is subject to the provisions of the Zope Public License,
 # Version 1.1 (ZPL).  A copy of the ZPL should accompany this distribution.
 # THIS SOFTWARE IS PROVIDED "AS IS" AND ANY AND ALL EXPRESS OR IMPLIED
 # WARRANTIES ARE DISCLAIMED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
 # WARRANTIES OF TITLE, MERCHANTABILITY, AGAINST INFRINGEMENT, AND FITNESS 
 # FOR A PARTICULAR PURPOSE.
+##############################################################################
+"""
+
+$Id$
+"""
 
 import Persistence
 from types import StringType, NoneType
@@ -63,7 +72,8 @@
 
     def getData(self):
         '''See interface IFile'''
-        if hasattr(self._data, '__class__') and self._data.__class__ is FileChunk:
+        if ( hasattr(self._data, '__class__')
+         and self._data.__class__ is FileChunk ):
             return str(self._data)
         else:
             return self._data
@@ -160,5 +170,5 @@
 
     #
     ############################################################
-                                                                                
+
 


=== Zope3/lib/python/Zope/App/OFS/File/IFile.py 1.1.2.1 => 1.1.2.2 ===
+#
+# Copyright (c) 2001 Zope Corporation and Contributors. All Rights Reserved.
+#
 # This software is subject to the provisions of the Zope Public License,
 # Version 1.1 (ZPL).  A copy of the ZPL should accompany this distribution.
 # THIS SOFTWARE IS PROVIDED "AS IS" AND ANY AND ALL EXPRESS OR IMPLIED
 # WARRANTIES ARE DISCLAIMED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
 # WARRANTIES OF TITLE, MERCHANTABILITY, AGAINST INFRINGEMENT, AND FITNESS 
 # FOR A PARTICULAR PURPOSE.
+##############################################################################
+"""
+
+$Id$
+"""
 
 from Interface import Interface
 
 
 class IFile(Interface):
-    """This interface describes the basic methods that are required to implement
-    a file as a Zope Content object.
+    """The basic methods that are required to implement
+       a file as a Zope Content object.
 
     """
 
@@ -18,8 +27,8 @@
     def edit(data, contentType=None):
         """Sets the data and the content type for the object.
 
-           Since some implementations will provide their content type through the
-           data, it is good to leave the argument optional.
+           Since some implementations will provide their content type
+           through the data, it is good to leave the argument optional.
         """
 
 


=== Zope3/lib/python/Zope/App/OFS/File/NaiveFile.py 1.1.2.2 => 1.1.2.3 ===
+#
+# Copyright (c) 2001 Zope Corporation and Contributors. All Rights Reserved.
+#
 # This software is subject to the provisions of the Zope Public License,
 # Version 1.1 (ZPL).  A copy of the ZPL should accompany this distribution.
 # THIS SOFTWARE IS PROVIDED "AS IS" AND ANY AND ALL EXPRESS OR IMPLIED
 # WARRANTIES ARE DISCLAIMED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
 # WARRANTIES OF TITLE, MERCHANTABILITY, AGAINST INFRINGEMENT, AND FITNESS 
 # FOR A PARTICULAR PURPOSE.
+##############################################################################
+"""
+
+$Id$
+"""
 
 import Persistence
 from IFile import IFile
@@ -84,5 +93,5 @@
         
     #
     ############################################################
-                                                                                
+