~launchpad-pqm/launchpad/devel

« back to all changes in this revision

Viewing changes to daemons/poppy-sftp.tac

  • Committer: Jonathan Lange
  • Date: 2010-06-25 17:01:36 UTC
  • mto: This revision was merged to the branch mainline in revision 11071.
  • Revision ID: jml@canonical.com-20100625170136-yzf5kzuaksbuxlqt
Use the DoNothing adapter.

Show diffs side-by-side

added added

removed removed

Lines of Context:
8
8
import os
9
9
 
10
10
from twisted.application import service
 
11
from twisted.conch.interfaces import ISession
11
12
from twisted.conch.ssh import filetransfer
12
13
from twisted.cred.portal import IRealm, Portal
13
14
from twisted.python import components
22
23
from lp.services.sshserver.auth import (
23
24
    LaunchpadAvatar, PublicKeyFromLaunchpadChecker)
24
25
from lp.services.sshserver.service import SSHService
 
26
from lp.services.sshserver.session import DoNothingSession
25
27
 
26
28
# XXX: Rename this file to something that doesn't mention poppy. Talk to
27
29
# bigjools.
79
81
components.registerAdapter(
80
82
    poppy_sftp_adapter, LaunchpadAvatar, filetransfer.ISFTPServer)
81
83
 
 
84
components.registerAdapter(DoNothingSession, LaunchpadAvatar, ISession)
 
85
 
82
86
 
83
87
# Construct an Application that has the Poppy SSH server.
84
88
application = service.Application('poppy-sftp')