Пример #1
0
        def get_manhole(_):
            namespace = {
                'dispatcher': applicationserver.dispatcher,
                'crond': applicationserver.crond,
            }
            if hasattr(applicationserver, 'controller'):
                namespace['controller'] = applicationserver.controller

            return manhole.ColoredManhole(namespace)
Пример #2
0
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)
Пример #3
0
 def getManhole(_):
     return manhole.ColoredManhole(namespace)
Пример #4
0
 def create_remote_protocol(_):
     return manhole.ColoredManhole(namespace)