Skip to content

Commit

Permalink
Patch to provide SFTP support for Zope.
Browse files Browse the repository at this point in the history
  • Loading branch information
mkerrin committed May 8, 2005
1 parent 78dbf48 commit 1e2411e
Show file tree
Hide file tree
Showing 22 changed files with 895 additions and 280 deletions.
4 changes: 3 additions & 1 deletion configure.zcml
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,10 @@

<utility
name="FTP"
component=".ftp.server"
component=".ftp.ftpserver"
provides=".interfaces.IServerType"
/>

<include package=".sftp" />

</configure>
5 changes: 3 additions & 2 deletions ftp/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,9 @@
"""FTP server factories.
"""

from zope.app.server.utils import FTPRequestFactory
from zope.app.server.server import ServerType
from zope.app.server.ftp.server import FTPRequestFactory, FTPFactory
from zope.app.server.ftp.server import FTPFactory

def createFTPFactory(db):
request_factory = FTPRequestFactory(db)
Expand All @@ -24,4 +25,4 @@ def createFTPFactory(db):

return factory

server = ServerType(createFTPFactory, 8021)
ftpserver = ServerType(createFTPFactory, 8021)
2 changes: 1 addition & 1 deletion ftp/ftp.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@

from twisted.protocols import ftp

from zope.app.server.ftp.publisher import PublisherFileSystem
from zope.app.server.utils import PublisherFileSystem

def ls(ls_info):
"""Formats a directory entry similarly to the 'ls' command.
Expand Down
219 changes: 0 additions & 219 deletions ftp/interfaces.py

This file was deleted.

Loading

0 comments on commit 1e2411e

Please sign in to comment.