Part of lp.codehosting.sshserver.session View In Hierarchy
Known subclasses: lp.codehosting.sshserver.session.ForkingRestrictedExecOnlySession
Method | __init__ | Construct a RestrictedExecOnlySession. |
Class Method | getAvatarAdapter | Undocumented |
Method | getCommandToRun | As in ExecOnlySession, but only allow a particular command. |
Inherited from ExecOnlySession:
Method | closed | See ISession. |
Method | eofReceived | See ISession. |
Method | execCommand | Executes command using protocol as the ProcessProtocol. |
Method | _spawn | Undocumented |
Parameters | avatar | See ExecOnlySession . |
reactor | See ExecOnlySession . | |
lookup_command_template | Lookup the template for a command. A template is a Python format string for the actual command that will be run. '%(user_id)s' will be replaced with the 'user_id' attribute of the current avatar. Should raise ForbiddenCommand if the command is not allowed. |