8.3.2.1.15. DispatcherDirective¶
- class DispatcherDirective(name, arguments, options, content, lineno, content_offset, *args, **kwargs)[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.
runset_source_infoSet source and line number to the node.
severewarningAttributes
__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?
option_specMapping of option names to validator functions.
optional_argumentsNumber of optional arguments after the required arguments.
required_argumentsNumber of required directive arguments.
- _default_flags = {'annotation', 'code', 'data', 'description', 'dsp', 'func', 'height', 'no-index', 'no-index-entry', 'no-value', 'noindex', 'opt', 'width'}¶
- __annotations__ = {}¶
- __doc__ = None¶
- __module__ = 'schedula.ext.dispatcher.documenter'¶