[Zope3-checkins] CVS: Zope3/src/zope/app/ftp - __init__.py:1.10 configure.zcml:1.6

Philipp von Weitershausen philikon at philikon.de
Wed Mar 17 13:24:55 EST 2004


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

Modified Files:
	__init__.py configure.zcml 
Log Message:


The traversing machinery now uses views providing an interface
(IPublishTraverse or subclassing interfaces) instead of views named
"_traverse".




=== Zope3/src/zope/app/ftp/__init__.py 1.9 => 1.10 ===
--- Zope3/src/zope/app/ftp/__init__.py:1.9	Mon Mar 15 08:10:50 2004
+++ Zope3/src/zope/app/ftp/__init__.py	Wed Mar 17 13:24:24 2004
@@ -18,8 +18,10 @@
 """
 __metaclass__ = type
 
+from zope.interface import implements
 from zope.component import queryNamedAdapter
 from zope.proxy import removeAllProxies
+from zope.publisher.interfaces.ftp import IFTPPublisher
 
 from zope.app.filerepresentation.interfaces import IReadFile, IWriteFile
 from zope.app.filerepresentation.interfaces import IReadDirectory
@@ -33,6 +35,7 @@
 from zope.app.copypastemove import rename
 
 class FTPView:
+    implements(IFTPPublisher)
 
     def __init__(self, context, request):
         self.context = context


=== Zope3/src/zope/app/ftp/configure.zcml 1.5 => 1.6 ===
--- Zope3/src/zope/app/ftp/configure.zcml:1.5	Wed Mar  3 05:38:44 2004
+++ Zope3/src/zope/app/ftp/configure.zcml	Wed Mar 17 13:24:24 2004
@@ -2,8 +2,8 @@
 
   <view 
       for="zope.app.container.interfaces.IReadContainer"
-      name="_traverse"
       type="zope.publisher.interfaces.ftp.IFTPRequest"
+      provides="zope.publisher.interfaces.ftp.IFTPPublisher"
       factory=".FTPView"
       permission="zope.Public"
       allowed_interface="zope.publisher.interfaces.ftp.IFTPDirectoryPublisher"




More information about the Zope3-Checkins mailing list