[Zope3-checkins] CVS: Zope3/src/zope/app/vfs/container - adding.py:1.1.2.3 configure.zcml:1.1.2.2 traverser.py:1.1.2.3 view.py:1.1.2.3

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


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

Modified Files:
      Tag: NameGeddon-branch
	adding.py configure.zcml traverser.py view.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/app/vfs/container/adding.py 1.1.2.2 => 1.1.2.3 ===
--- Zope3/src/zope/app/vfs/container/adding.py:1.1.2.2	Mon Dec 23 18:17:35 2002
+++ Zope3/src/zope/app/vfs/container/adding.py	Tue Dec 24 07:51:22 2002
@@ -39,7 +39,7 @@
     # IAdding.py
 
     def add(self, content):
-        'See Zope.App.OFS.Container.IAdding.IAdding'
+        'See IAdding'
         container = self.context
         container = getAdapter(container, IZopeContainer)
         name = container.setObject(self.contentName, content)
@@ -49,19 +49,13 @@
     def setContentName(self, name):
         self.contentName = name
         
-    # See Zope.App.OFS.Container.Views.Browser.IAdding.IAdding
+    # See IAdding
     contentName = None # usually set by setContentName
 
-    ######################################
-    # from: Zope.ComponentArchitecture.IPresentation.IPresentation
-
-    # See Zope.ComponentArchitecture.IPresentation.IPresentation
+    # See IPresentation
     request = None # set in VFSView.__init__
 
-    ######################################
-    # from: Zope.ComponentArchitecture.IContextDependent.IContextDependent
-
-    # See Zope.ComponentArchitecture.IContextDependent.IContextDependent
+    # See IContextDependent
     context = None # set in VFSView.__init__
 
 


=== Zope3/src/zope/app/vfs/container/configure.zcml 1.1.2.1 => 1.1.2.2 ===
--- Zope3/src/zope/app/vfs/container/configure.zcml:1.1.2.1	Mon Dec 23 14:32:35 2002
+++ Zope3/src/zope/app/vfs/container/configure.zcml	Tue Dec 24 07:51:22 2002
@@ -18,13 +18,13 @@
        name="+"  
        factory="zope.app.vfs.container.adding.Adding"
        allowed_attributes="setContentName add"
-       permission="Zope.ManageContent" />
+       permission="zope.ManageContent" />
  
   <!-- Generic VFS Container View -->
   <vfs:view
       name="vfs"
       for="zope.app.interfaces.container.IContainer"
-      permission="Zope.ManageContent" 
+      permission="zope.ManageContent" 
       allowed_interface="zope.publisher.interfaces.vfs.IVFSDirectoryPublisher" 
       factory="zope.app.vfs.container.view.VFSContainerView" 
       />


=== Zope3/src/zope/app/vfs/container/traverser.py 1.1.2.2 => 1.1.2.3 ===
--- Zope3/src/zope/app/vfs/container/traverser.py:1.1.2.2	Mon Dec 23 18:17:35 2002
+++ Zope3/src/zope/app/vfs/container/traverser.py	Tue Dec 24 07:51:22 2002
@@ -41,7 +41,7 @@
         return name, ""
 
     def publishTraverse(self, request, name):
-        """See Zope.Publisher.IPublishTraverse."""
+        """See IPublishTraverse."""
         context = self.context
 
         # First, try to resolve the name as we get it.
@@ -68,7 +68,7 @@
     __used_for__ = IItemContainer
 
     def publishTraverse(self, request, name):
-        """See Zope.Publisher.IPublishTraverse."""
+        """See IPublishTraverse."""
         context = self.context
 
         # First, try to resolve the name as we get it.


=== Zope3/src/zope/app/vfs/container/view.py 1.1.2.2 => 1.1.2.3 ===
--- Zope3/src/zope/app/vfs/container/view.py:1.1.2.2	Mon Dec 23 18:17:35 2002
+++ Zope3/src/zope/app/vfs/container/view.py	Tue Dec 24 07:51:22 2002
@@ -45,12 +45,8 @@
     # used when a directory is created.
     _directory_type = 'Container'
 
-    ############################################################
-    # Implementation methods for interface
-    # Zope.Publisher.VFS.IVFSDirectoryPublisher
-
     def exists(self, name):
-        'See Zope.Publisher.VFS.IVFSDirectoryPublisher.IVFSDirectoryPublisher'
+        'See IVFSDirectoryPublisher'
         try:
             self.publishTraverse(self.request, name)
         except NotFound:
@@ -58,7 +54,7 @@
         return True
 
     def listdir(self, with_stats=0, pattern='*'):
-        'See Zope.Publisher.VFS.IVFSDirectoryPublisher.IVFSDirectoryPublisher'
+        'See IVFSDirectoryPublisher'
         file_list = self.context.keys()
         # filter them using the pattern
         file_list = list(
@@ -86,7 +82,7 @@
     
 
     def mkdir(self, name, mode=777):
-        'See Zope.Publisher.VFS.IVFSDirectoryPublisher.IVFSDirectoryPublisher'
+        'See IVFSDirectoryPublisher'
         if not (name in self.context):
             adding = getView(self.context, "+", self.request)
             adding.setContentName(name)
@@ -94,17 +90,17 @@
             add()
 
     def remove(self, name):
-        'See Zope.Publisher.VFS.IVFSDirectoryPublisher.IVFSDirectoryPublisher'
+        'See IVFSDirectoryPublisher'
         container = removeAllProxies(self.context)
         container.__delitem__(name)
         # XXX: We should have a ObjectRemovedEvent here
 
     def rmdir(self, name):
-        'See Zope.Publisher.VFS.IVFSDirectoryPublisher.IVFSDirectoryPublisher'
+        'See IVFSDirectoryPublisher'
         self.remove(name)
 
     def rename(self, old, new):
-        'See Zope.Publisher.VFS.IVFSDirectoryPublisher.IVFSDirectoryPublisher'
+        'See IVFSDirectoryPublisher'
         container = self.context
         content = container[old]
         self.remove(old)
@@ -114,7 +110,7 @@
         content = adding.add(content)
 
     def writefile(self, name, mode, instream, start=0):
-        'See Zope.Publisher.VFS.IVFSDirectoryPublisher.IVFSDirectoryPublisher'
+        'See IVFSDirectoryPublisher'
         # Find the extension
         ext_start = name.rfind('.')
         if ext_start > 0:
@@ -134,24 +130,20 @@
         add(mode, instream, start)
                     
     def check_writable(self, name):
-        'See Zope.Publisher.VFS.IVFSDirectoryPublisher.IVFSDirectoryPublisher'
+        'See IVFSDirectoryPublisher'
         # XXX Cheesy band aid :-)
         return 1
 
-
-    ######################################
-    # from: Zope.Publisher.VFS.IVFSObjectPublisher.IVFSObjectPublisher
-
     def isdir(self):
-        'See Zope.Publisher.VFS.IVFSObjectPublisher.IVFSObjectPublisher'
+        'See IVFSObjectPublisher'
         return 1
 
     def isfile(self):
-        'See Zope.Publisher.VFS.IVFSObjectPublisher.IVFSObjectPublisher'
+        'See IVFSObjectPublisher'
         return 0
 
     def stat(self):
-        'See Zope.Publisher.VFS.IVFSObjectPublisher.IVFSObjectPublisher'
+        'See IVFSObjectPublisher'
         dc = getAdapter(self.context, IZopeDublinCore)
         if dc is not None:
             created = dc.created
@@ -176,17 +168,11 @@
                 created)
 
 
-    ######################################
-    # from: Zope.Publisher.VFS.IVFSPublisher.IVFSPublisher
-
     def publishTraverse(self, request, name):
-        'See Zope.Publisher.VFS.IVFSPublisher.IVFSPublisher'
+        'See IVFSPublisher'
         # This is a nice way of doing the name lookup; this way we can keep
         # all the extension handeling code in the Traverser code.
         traverser = getView(self.context, '_traverse', request)
         return traverser.publishTraverse(request, name)
-
-    #
-    ############################################################