t.w.p.i._CommandDispatcherMixin(object) : class documentation

Part of twisted.words.protocols.irc View Source View In Hierarchy

Known subclasses: twisted.words.protocols.irc._FormattingParser, twisted.words.protocols.irc.ServerSupportedFeatures

Dispatch commands to handlers based on their name.

Command handler names should be of the form prefix_commandName, where prefix is the value specified by prefix, and must accept the parameters as given to dispatch.

Attempting to mix this in more than once for a single class will cause strange behaviour, due to prefix being overwritten.

Instance Variable prefix Command handler prefix, used to locate handler attributes (type: str)
Method dispatch Perform actual command dispatch.
prefix =
Command handler prefix, used to locate handler attributes (type: str)
def dispatch(self, commandName, *args): (source)
Perform actual command dispatch.
API Documentation for Twisted, generated by pydoctor at 2013-11-08 22:07:30.