[Zope3-checkins] CVS: Zope3/src/zope/server/vfs - osfilesystem.py:1.1.2.2 publisherfilesystem.py:1.1.2.2

Jim Fulton jim@zope.com
Tue, 24 Dec 2002 07:52:04 -0500


Update of /cvs-repository/Zope3/src/zope/server/vfs
In directory cvs.zope.org:/tmp/cvs-serv1158/src/zope/server/vfs

Modified Files:
      Tag: NameGeddon-branch
	osfilesystem.py publisherfilesystem.py 
Log Message:
Searched for and changed over 1200 references to Zope.something.

Most of these were either comments, doc strings, or permission ids.

Many were imports or ids in zcml.  (much zcml fixup is still needed.



=== Zope3/src/zope/server/vfs/osfilesystem.py 1.1.2.1 => 1.1.2.2 ===
--- Zope3/src/zope/server/vfs/osfilesystem.py:1.1.2.1	Mon Dec 23 14:33:25 2002
+++ Zope3/src/zope/server/vfs/osfilesystem.py	Tue Dec 24 07:51:33 2002
@@ -40,64 +40,56 @@
     def __init__ (self, root):
         self.root = root
 
-    ############################################################
-    # Implementation methods for interface
-    # Zope.Server.VFS.IPosixFileSystem.IPosixFileSystem
-
     def chmod(self, path, mode):
-        'See Zope.Server.VFS.IWriteFileSystem.IWriteFileSystem'
+        'See IWriteFileSystem'
         p = self.translate (path)
         return os.chmod(p, mode)
 
 
     def chown(self, path, uid, gid):
-        'See Zope.Server.VFS.IWriteFileSystem.IWriteFileSystem'
+        'See IWriteFileSystem'
         p = self.translate (path)
         return os.chown(p, uid, gid)
 
 
     def link(self, src, dst):
-        'See Zope.Server.VFS.IWriteFileSystem.IWriteFileSystem'
+        'See IWriteFileSystem'
         src = self.translate(src)
         dst = self.translate(dst)
         return os.link(src, dst)
 
 
     def mkfifo(self, path, mode=6*2**6):
-        'See Zope.Server.VFS.IWriteFileSystem.IWriteFileSystem'
+        'See IWriteFileSystem'
         return os.mkfifo(path, mode)
 
 
     def symlink(self, src, dst):
-        'See Zope.Server.VFS.IWriteFileSystem.IWriteFileSystem'
+        'See IWriteFileSystem'
         src = self.translate(src)
         dst = self.translate(dst)
         return os.symlink(src, dst)
 
-
-    ######################################
-    # from: Zope.Server.VFS.IReadFileSystem.IReadFileSystem
-
     def exists(self, path):
-        'See Zope.Server.VFS.IReadFileSystem.IReadFileSystem'
+        'See IReadFileSystem'
         p = self.translate(path)
         return os.path.exists(p)
 
 
     def isdir(self, path):
-        'See Zope.Server.VFS.IReadFileSystem.IReadFileSystem'
+        'See IReadFileSystem'
         p = self.translate(path)
         return os.path.isdir(p)
 
 
     def isfile(self, path):
-        'See Zope.Server.VFS.IReadFileSystem.IReadFileSystem'
+        'See IReadFileSystem'
         p = self.translate(path)
         return os.path.isfile(p)
 
 
     def listdir(self, path, with_stats=0, pattern='*'):
-        'See Zope.Server.VFS.IReadFileSystem.IReadFileSystem'
+        'See IReadFileSystem'
         p = self.translate(path)
         # list the directory's files
         ld = os.listdir(p)
@@ -118,7 +110,7 @@
 
 
     def readfile(self, path, mode, outstream, start=0, end=-1):
-        'See Zope.Server.VFS.IReadFileSystem.IReadFileSystem'
+        'See IReadFileSystem'
         p = self.translate(path)
         instream = open(p, mode)
         if start:
@@ -136,42 +128,38 @@
 
 
     def stat(self, path):
-        'See Zope.Server.VFS.IReadFileSystem.IReadFileSystem'
+        'See IReadFileSystem'
         p = self.translate(path)
         stat = os.stat(p)
         return stat[0:6], fromts(stat[7]), fromts(stat[8]), fromts(stat[9])
 
-
-    ######################################
-    # from: Zope.Server.VFS.IWriteFileSystem.IWriteFileSystem
-
     def mkdir(self, path, mode=6*2**6):
-        'See Zope.Server.VFS.IWriteFileSystem.IWriteFileSystem'
+        'See IWriteFileSystem'
         p = self.translate(path)
         return os.mkdir(p, mode)
 
 
     def remove(self, path):
-        'See Zope.Server.VFS.IWriteFileSystem.IWriteFileSystem'
+        'See IWriteFileSystem'
         p = self.translate (path)
         return os.remove(p)
 
 
     def rmdir(self, path):
-        'See Zope.Server.VFS.IWriteFileSystem.IWriteFileSystem'
+        'See IWriteFileSystem'
         p = self.translate (path)
         return os.rmdir(p)
 
 
     def rename(self, old, new):
-        'See Zope.Server.VFS.IWriteFileSystem.IWriteFileSystem'
+        'See IWriteFileSystem'
         old = self.translate(old)
         new = self.translate(new)
         return os.rename(old, new)
 
 
     def writefile(self, path, mode, instream, start=0):
-        'See Zope.Server.VFS.IWriteFileSystem.IWriteFileSystem'
+        'See IWriteFileSystem'
         p = self.translate(path)
         outstream = open(p, mode)
         if start:
@@ -183,7 +171,7 @@
             outstream.write(data)
 
     def check_writable(self, path):
-        'See Zope.Server.VFS.IWriteFileSystem.IWriteFileSystem'
+        'See IWriteFileSystem'
         p = self.translate(path)
         if os.path.exists(p):
             remove = 0
@@ -193,10 +181,6 @@
         f.close()
         if remove:
             os.remove(p)
-
-    #
-    ############################################################
-
 
     # utility methods
 


=== Zope3/src/zope/server/vfs/publisherfilesystem.py 1.1.2.1 => 1.1.2.2 ===
--- Zope3/src/zope/server/vfs/publisherfilesystem.py:1.1.2.1	Mon Dec 23 14:33:25 2002
+++ Zope3/src/zope/server/vfs/publisherfilesystem.py	Tue Dec 24 07:51:33 2002
@@ -70,13 +70,8 @@
         publish(request)
         return response.getResult()
 
-
-    ############################################################
-    # Implementation methods for interface
-    # Zope.Server.VFS.IReadFileSystem.
-
     def exists(self, path):
-        'See Zope.Server.VFS.IReadFileSystem.IReadFileSystem'
+        'See IReadFileSystem'
         path = self.translate(path)
         if path == '/':
             return 1
@@ -86,19 +81,19 @@
 
 
     def isdir(self, path):
-        'See Zope.Server.VFS.IReadFileSystem.IReadFileSystem'
+        'See IReadFileSystem'
         path = self.translate(path)
         return self._execute(path, 'isdir')
 
 
     def isfile(self, path):
-        'See Zope.Server.VFS.IReadFileSystem.IReadFileSystem'
+        'See IReadFileSystem'
         path = self.translate(path)
         return self._execute(path, 'isfile')
 
 
     def listdir(self, path, with_stats=0, pattern='*'):
-        'See Zope.Server.VFS.IReadFileSystem.IReadFileSystem'
+        'See IReadFileSystem'
         path = self.translate(path)
         env = {'with_stats' : with_stats,
                'pattern' : pattern}
@@ -106,7 +101,7 @@
 
 
     def readfile(self, path, mode, outstream, start=0, end=-1):
-        'See Zope.Server.VFS.IReadFileSystem.IReadFileSystem'
+        'See IReadFileSystem'
         path = self.translate(path)
         env = {'mode'      : mode,
                'outstream' : outstream,
@@ -116,19 +111,12 @@
 
 
     def stat(self, path):
-        'See Zope.Server.VFS.IReadFileSystem.IReadFileSystem'
+        'See IReadFileSystem'
         path = self.translate(path)
         return self._execute(path, 'stat')
 
-    #
-    ############################################################
-
-    ############################################################
-    # Implementation methods for interface
-    # Zope.Server.VFS.IWriteFileSystem.
-
     def mkdir(self, path, mode=777):
-        'See Zope.Server.VFS.IWriteFileSystem.IWriteFileSystem'
+        'See IWriteFileSystem'
         path = self.translate(path)
         path, dir = posixpath.split(path)
         env = {'name': dir}
@@ -136,7 +124,7 @@
 
 
     def remove(self, path):
-        'See Zope.Server.VFS.IWriteFileSystem.IWriteFileSystem'
+        'See IWriteFileSystem'
         path = self.translate(path)
         path, name = posixpath.split(path)
         env = {'name': name}
@@ -144,7 +132,7 @@
 
 
     def rmdir(self, path):
-        'See Zope.Server.VFS.IWriteFileSystem.IWriteFileSystem'
+        'See IWriteFileSystem'
         path = self.translate(path)
         path, dir = posixpath.split(path)
         env = {'name': dir}
@@ -152,7 +140,7 @@
 
 
     def rename(self, old, new):
-        'See Zope.Server.VFS.IWriteFileSystem.IWriteFileSystem'
+        'See IWriteFileSystem'
         old = self.translate(old)
         new = self.translate(new)
         path0, old = posixpath.split(old)
@@ -163,7 +151,7 @@
         return self._execute(path0, 'rename', env)
 
     def writefile(self, path, mode, instream, start=0):
-        'See Zope.Server.VFS.IWriteFileSystem.IWriteFileSystem'
+        'See IWriteFileSystem'
         path = self.translate(path)
         path, name = posixpath.split(path)
         env = {'name'      : name,
@@ -174,14 +162,11 @@
 
 
     def check_writable(self, path):
-        'See Zope.Server.VFS.IWriteFileSystem.IWriteFileSystem'
+        'See IWriteFileSystem'
         path = self.translate(path)
         path, name = posixpath.split(path)
         env = {'name'      : name}
         return self._execute(path, 'check_writable', env)
-
-    #
-    ############################################################
 
     # utility methods