[Twisted-Python] twisted.manhole
Jp Calderone
exarkun at divmod.com
Tue Aug 17 21:26:22 MDT 2004
twisted-10152003 at atlas.lcs.mit.edu wrote:
> There doesn't seem to be much documentation for twisted.manhole. Yes,
> I have seen http://www.twistedmatrix.com/documents/current/howto/telnet
>
> So, I have been playing around with it trying to figure out the proper usage.
> I have some of it figured out. The following snippet works fine for my
> needs...
>
> from twisted.manhole.telnet import ShellFactory
>
> [...]
>
> shell = ShellFactory()
> shell.setService(s) // s here is my own service
> shell.password = "test"
> internet.TCPServer(config['telnet_port'],shell).setServiceParent(serviceCollection)
>
> But I was curious so starting looking at the other parts of it as well.
>
> Frustratingly, I haven't yet figured out how to employ
> twisted.manhole.ui twisted.manhole.service or twisted.manhole.explorer.
> Can anyone point so some examples or provide a brief overview.
Check out twisted.tap.manhole.makeService() and bin/manhole. I don't
believe twisted.manhole.explorer is directly useful from the outside.
If it still works (I don't believe it has unit tests, either ;), it
should work through the Gtk manhole client.
Jp
More information about the Twisted-Python
mailing list