8.3.2.2.3. DispatcherSphinxDirective¶
- class DispatcherSphinxDirective(name, arguments, options, content, lineno, content_offset, block_text, state, state_machine)[source]¶
Methods
__delattr__Implement delattr(self, name).
__dir__Default dir() implementation.
__eq__Return self==value.
__format__Default object formatter.
__ge__Return self>=value.
__getattribute__Return getattr(self, name).
__getstate__Helper for pickle.
__gt__Return self>value.
__hash__Return hash(self).
__init_subclass__This method is called when a class is subclassed.
__le__Return self<=value.
__lt__Return self<value.
__ne__Return self!=value.
__new____reduce__Helper for pickle.
__reduce_ex__Helper for pickle.
__repr__Return repr(self).
__setattr__Implement setattr(self, name, value).
__sizeof__Size of object in memory, in bytes.
__str__Return str(self).
__subclasshook__Abstract classes can override this to customize issubclass().
add_nameAppend self.options['name'] to node['names'] if it exists.
assert_has_contentThrow an ERROR-level DirectiveError if the directive doesn't have contents.
debugdirective_errorReturn a DirectiveError suitable for being thrown as an exception.
errorget_locationGet current location info for logging.
get_source_infoGet source and line number.
infoparse_content_to_nodesParse the directive's content into nodes.
parse_inlineParse text as inline elements.
parse_text_to_nodesParse text into nodes.
set_source_infoSet source and line number to the node.
severewarning- __init__(name, arguments, options, content, lineno, content_offset, block_text, state, state_machine)¶
Attributes
__dict____weakref__list of weak references to the object
configReference to the
Configobject.envReference to the
BuildEnvironmentobject.final_argument_whitespaceMay the final argument contain whitespace?
has_contentMay the directive have content?
Mapping of option names to validator functions.
optional_argumentsNumber of optional arguments after the required arguments.
Number of required directive arguments.
- required_arguments = 1¶
Number of required directive arguments.
- img_opt = {'height': <function length_or_unitless>, 'width': <function length_or_percentage_or_unitless>}¶
- option_spec: ClassVar[OptionSpec] = {'align': <function align_spec>, 'alt': <function unchanged>, 'caption': <function unchanged>, 'class': <function class_option>, 'graphviz_dot': <function unchanged>, 'height': <function length_or_unitless>, 'index': <function bool_option>, 'layout': <function unchanged>, 'name': <function unchanged>, 'viz': <function bool_option>, 'width': <function length_or_percentage_or_unitless>}¶
Mapping of option names to validator functions.
- __annotations__ = {'option_spec': 'ClassVar[OptionSpec]'}¶
- __doc__ = None¶
- __module__ = 'schedula.ext.dispatcher.graphviz'¶