[Twisted-Python] Declaring AMP responders away from

Allen Short washort at twistedmatrix.com
Wed May 16 09:07:48 MDT 2012


Have a look at what I did in Frack:

http://bazaar.launchpad.net/~washort/frack/trunk/view/head:/frack/wiring.py#L27
http://bazaar.launchpad.net/~washort/frack/trunk/view/head:/frack/responder.py#L85

You can unbundle the locator and dispatcher bits. I only used this for
a single separate class, but with some imagination the principle could
be extended to multiple objects I bet.




More information about the Twisted-Python mailing list