7.3.2.2.4. Dispatcher

class Dispatcher(name, arguments, options, content, lineno, content_offset, block_text, state, state_machine)[source]

Methods

__init__ Initialize self.
add_name Append self.options[‘name’] to node[‘names’] if it exists.
assert_has_content Throw an ERROR-level DirectiveError if the directive doesn’t have contents.
debug
directive_error Return a DirectiveError suitable for being thrown as an exception.
error
info
run
severe
warning
__init__(name, arguments, options, content, lineno, content_offset, block_text, state, state_machine)

Initialize self. See help(type(self)) for accurate signature.

Attributes

config Reference to the Config object.
env Reference to the BuildEnvironment object.
final_argument_whitespace
has_content
img_opt
option_spec
optional_arguments
required_arguments