[Zope3-checkins] CVS: Zope3/src/zope/app/fssync - classes.py:1.9 configure.zcml:1.3

Guido van Rossum guido@python.org
Mon, 9 Jun 2003 17:38:40 -0400


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

Modified Files:
	classes.py configure.zcml 
Log Message:
Remove some vestigial code that doesn't seem to be used any more.


=== Zope3/src/zope/app/fssync/classes.py 1.8 => 1.9 ===
--- Zope3/src/zope/app/fssync/classes.py:1.8	Mon Jun  9 14:48:52 2003
+++ Zope3/src/zope/app/fssync/classes.py	Mon Jun  9 17:38:09 2003
@@ -18,9 +18,7 @@
 
 import os
 
-from zope.app.content.file import File
-from zope.app.content.folder import Folder
-from zope.app.interfaces.fssync import IFSAddView, IObjectFile
+from zope.app.interfaces.fssync import IObjectFile
 from zope.app.interfaces.annotation import IAnnotations
 from zope.component import queryAdapter
 from zope.component.interfaces import IPresentationRequest
@@ -28,26 +26,6 @@
 from zope.proxy import removeAllProxies
 from zope.interface import implements
 
-class FSAddView(object):
-    """See IFSAddView."""
-
-    implements(IFSAddView)
-
-    def __init__(self, context, request):
-        self.context = context
-        self.request = request
-
-class AddView(FSAddView):
-    """Supports to create a file system representation of zope
-       file type objects
-    """
-
-    def create(self, fs_path=None):
-        if os.path.isdir(fs_path):
-            return Folder()
-        else:
-            return File()
-
 class AttrMapping(object):
     """Convenience object implementing a mapping on selected object attributes
     """
@@ -133,13 +111,6 @@
         # We have no factory, cause we're a pickle.
         return None
 
-class FSAddRequest(object):
-    """XXX docstring???"""
-
-    implements(IPresentationRequest)
-
-    def getPresentationType(self):
-        return IFSAddView
-
-    def getPresentationSkin(self):
-        return 'default'
+    def annotations(self):
+        # The annotations are already stored in the pickle.
+        return None


=== Zope3/src/zope/app/fssync/configure.zcml 1.2 => 1.3 ===
--- Zope3/src/zope/app/fssync/configure.zcml:1.2	Mon May  5 14:01:01 2003
+++ Zope3/src/zope/app/fssync/configure.zcml	Mon Jun  9 17:38:09 2003
@@ -10,11 +10,4 @@
     component="zope.app.fssync.fsregistry.fsRegistry"
     />
 
-  <view 
-    factory="zope.app.fssync.classes.AddView"
-    for="zope.app.interfaces.fssync.IContentDirectory"
-    type="zope.app.interfaces.fssync.IFSAddView"
-    name="."
-    />
-
 </zopeConfigure>