class documentation
class _CommandDispatcherMixin: (source)
Known subclasses: twisted.words.protocols.irc.ServerSupportedFeatures
, twisted.words.protocols.irc._FormattingParser
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.
Method | dispatch |
Perform actual command dispatch. |
Instance Variable | prefix |
Command handler prefix, used to locate handler attributes |
overridden in
twisted.words.protocols.irc.ServerSupportedFeatures
, twisted.words.protocols.irc._FormattingParser
Command handler prefix, used to locate handler attributes