[Zope3-checkins] CVS: Zope3/src/zope/app/ftp - __init__.py:1.2

Albertas Agejevas alga@codeworks.lt
Thu, 13 Mar 2003 13:49:38 -0500


Update of /cvs-repository/Zope3/src/zope/app/ftp
In directory cvs.zope.org:/tmp/cvs-serv1411/src/zope/app/ftp

Modified Files:
	__init__.py 
Log Message:
An unexpected raid by the Whitespace Police.

Other than fixes of nonconforming whitespace, just a couple of $Id$
docstrings has been added.



=== Zope3/src/zope/app/ftp/__init__.py 1.1 => 1.2 ===
--- Zope3/src/zope/app/ftp/__init__.py:1.1	Mon Feb  3 10:08:35 2003
+++ Zope3/src/zope/app/ftp/__init__.py	Thu Mar 13 13:49:07 2003
@@ -1,7 +1,7 @@
 ##############################################################################
 # Copyright (c) 2003 Zope Corporation and Contributors.
 # All Rights Reserved.
-# 
+#
 # This software is subject to the provisions of the Zope Public License,
 # Version 2.0 (ZPL).  A copy of the ZPL should accompany this distribution.
 # THIS SOFTWARE IS PROVIDED "AS IS" AND ANY AND ALL EXPRESS OR IMPLIED
@@ -9,7 +9,7 @@
 # WARRANTIES OF TITLE, MERCHANTABILITY, AGAINST INFRINGEMENT, AND FITNESS
 # FOR A PARTICULAR PURPOSE.
 ##############################################################################
-"""Views implementing ftp commands 
+"""Views implementing ftp commands
 
 These views implement ftp commands using file-system representation
 and meta-data apis.
@@ -30,7 +30,7 @@
 from zope.app.interfaces.container import IZopeWriteContainer
 
 from zope.proxy.introspection import removeAllProxies
-    
+
 class FTPView:
 
     def __init__(self, context, request):
@@ -46,14 +46,14 @@
             return 'd'
         else:
             return 'f'
-        
+
     def type(self, name=None):
         if not name:
             return 'd'
         file = self._dir.get(name)
         if file is not None:
             return self._type(file)
-        
+
     def names(self, filter=None):
         if filter is None:
             return list(self._dir)
@@ -67,7 +67,7 @@
         else:
             return [lsinfo(name, dir[name]) for name in dir
                     if filter(name)]
-            
+
     def _lsinfo(self, name, file):
 
         info = {'name': name,
@@ -90,13 +90,13 @@
                 if size is not self:
                     info['group_readable'] = True
                     info['size'] = size()
-            
+
             else:
                 info['group_readable'] = False
 
             f = queryAdapter(file, IWriteFile)
             info['group_writable'] = hasattr(f, 'write')
-                
+
         return info
 
     def readfile(self, name, outstream, start = 0, end = None):
@@ -119,7 +119,7 @@
         dc = getAdapter(file, IZopeDublinCore)
         if dc is not None:
             return dc.modified
-        
+
     def mtime(self, name=None):
         if name:
             return self._mtime(self._dir[name])
@@ -198,7 +198,7 @@
 
         if start is not None:
             data = ('\0' * start) + data
-        
+
         # Find the extension
         ext_start = name.rfind('.')
         if ext_start > 0:
@@ -224,4 +224,4 @@
         d = queryAdapter(self.context, IWriteDirectory)
         return hasattr(d, 'setObject')
 
-        
+