def __init__(self, builder, *args, **kwargs): """ """ NodeVisitor.__init__(self, *args, **kwargs) self.builder = builder self.dispatcher = self.builder.template.dispatcher self.context = {}
def __init__(self, document): NodeVisitor.__init__(self, document) self.paragraphs = [] self.start_lines = [] self.params = defaultdict(dict) self._current_paragraph = None self._indent_iterator_stack = [] self._indent_stack = []
def __init__(self, document): NodeVisitor.__init__(self, document) self.section_level = 1 self.first_paragraph = True self.inside_literal_block = False self.lists = [] self.block_input = False self._content = []
def __init__(self, document): NodeVisitor.__init__(self, document) self.root = RootElement() self.curnode = self.root self.context = [] self.compact_simple = None self.compact_field_list = None self.compact_p = 1 self.initial_header_level = 2 self.section_level = 0
def __init__(self, document): NodeVisitor.__init__(self, document) self._output = StringIO() self.generator = XMLGenerator(self._output, "utf-8") self.generator.outf = self._output self.listenv = None self.tableenv = False self.within_index = False self.restrect_newline = True
def __init__(self, document, builder): NodeVisitor.__init__(self, document) self.builder = builder self._output = StringIO() self.generator = XMLGenerator(self._output, "utf-8") self.generator.outf = self._output self.listenv = None self.within_index = False self.licount = 0 self.admonition = None
def __init__(self, document, builder): BaseTranslator.__init__(self, document) self.builder = builder self.state = builder.state self.verbose = ConfluenceLogger.verbose self.warn = ConfluenceLogger.warn config = builder.config # acquire the active document name from the builder assert 'source' in document self.docname = canon_path(self.builder.env.path2doc(document['source'])) # determine the active document's parent path to assist it title mapping # for relative document uris # (see '_visit_reference_intern_uri') if SEP in self.docname: self.docparent = self.docname[0 : self.docname.rfind(SEP) + 1] else: self.docparent = '' self.assets = builder.assets self.body = [] self.context = [] self.nl = '\n' self._docnames = [self.docname] self._literal = False self._section_level = 1 self._topic = False if config.confluence_default_alignment: self._default_alignment = config.confluence_default_alignment else: self._default_alignment = DEFAULT_ALIGNMENT if config.highlight_language: self._highlight = config.highlight_language else: self._highlight = DEFAULT_HIGHLIGHT_STYLE self._linenothreshold = sys.maxsize
def __init__(self, document): NodeVisitor.__init__(self, document) self.found_words = []
def __init__(self, document, lang): NodeVisitor.__init__(self, document) self.found_words = [] self.found_title_words = [] self.lang = lang
def __init__(self, document, lang): # type: (nodes.Node, SearchLanguage) -> None NodeVisitor.__init__(self, document) self.found_words = [] # type: List[unicode] self.found_title_words = [] # type: List[unicode] self.lang = lang
def __init__(self, document): NodeVisitor.__init__(self, document) self.terms = None """
def __init__(self, document: docutils.nodes.document, errors: List[ParseError]): NodeVisitor.__init__(self, document) self._errors = errors self.fields: List[Field] = [] self._newfields: Set[str] = set()
def __init__(self, document): NodeVisitor.__init__(self, document) self.summary = None self.other_docs = None
def __init__(self, document, errors): NodeVisitor.__init__(self, document) self._errors = errors self.fields = [] self._newfields = {}