def get_manhole(_): namespace = { 'dispatcher': applicationserver.dispatcher, 'crond': applicationserver.crond, } if hasattr(applicationserver, 'controller'): namespace['controller'] = applicationserver.controller return manhole.ColoredManhole(namespace)
def makeFactory(store, ampFactory): shellGlobals = {"store": store, "ampFactory": ampFactory} makeManhole = lambda _ign: manhole.ColoredManhole(shellGlobals) realm = manhole_ssh.TerminalRealm() realm.chainedProtocolFactory.protocolFactory = makeManhole p = portal.Portal(realm, [checker]) return manhole_ssh.ConchFactory(p)
def getManhole(_): return manhole.ColoredManhole(namespace)
def create_remote_protocol(_): return manhole.ColoredManhole(namespace)