def openShell(self, proto):
     """Open a shell.
     """
     self.chained_protocol = UrwidServerProtocol(UrwidTerminalProtocol,
                                                 IUrwidMind(self.original))
     TerminalSessionTransport(proto, self.chained_protocol,
                              IConchUser(self.original), self.height,
                              self.width)
Beispiel #2
0
    def __init__(self, proto, chainedProtocol, avatar, width, height):
        TerminalSessionTransport.__init__(self, proto, chainedProtocol, avatar, width, height)

        chainedProtocol.terminalProtocol.logged_in(avatar.principal)
        logger = UserLogger(principal=avatar.principal)
        logger.log('User logged in')