comparison sat/plugins/plugin_syntax_wiki_dotclear.py @ 2780:85d3240a400f

plugin text syntaxes: changed import name to TEXT_SYNTAX (better with underscore for autocompletion)
author Goffi <goffi@goffi.org>
date Sat, 19 Jan 2019 11:39:02 +0100
parents 003b8b4b56a7
children ab2696e34d29
comparison
equal deleted inserted replaced
2779:4cfa2085aebf 2780:85d3240a400f
32 32
33 PLUGIN_INFO = { 33 PLUGIN_INFO = {
34 C.PI_NAME: "Dotclear Wiki Syntax Plugin", 34 C.PI_NAME: "Dotclear Wiki Syntax Plugin",
35 C.PI_IMPORT_NAME: "SYNT_DC_WIKI", 35 C.PI_IMPORT_NAME: "SYNT_DC_WIKI",
36 C.PI_TYPE: C.PLUG_TYPE_SYNTAXE, 36 C.PI_TYPE: C.PLUG_TYPE_SYNTAXE,
37 C.PI_DEPENDENCIES: ["TEXT-SYNTAXES"], 37 C.PI_DEPENDENCIES: ["TEXT_SYNTAXES"],
38 C.PI_MAIN: "DCWikiSyntax", 38 C.PI_MAIN: "DCWikiSyntax",
39 C.PI_HANDLER: "", 39 C.PI_HANDLER: "",
40 C.PI_DESCRIPTION: _("""Implementation of Dotclear wiki syntax"""), 40 C.PI_DESCRIPTION: _("""Implementation of Dotclear wiki syntax"""),
41 } 41 }
42 42
663 def __init__(self, host): 663 def __init__(self, host):
664 log.info(_(u"Dotclear wiki syntax plugin initialization")) 664 log.info(_(u"Dotclear wiki syntax plugin initialization"))
665 self.host = host 665 self.host = host
666 self._dc_parser = DCWikiParser() 666 self._dc_parser = DCWikiParser()
667 self._xhtml_parser = XHTMLParser() 667 self._xhtml_parser = XHTMLParser()
668 self._stx = self.host.plugins["TEXT-SYNTAXES"] 668 self._stx = self.host.plugins["TEXT_SYNTAXES"]
669 self._stx.addSyntax( 669 self._stx.addSyntax(
670 self.SYNTAX_NAME, self.parseWiki, self.parseXHTML, [self._stx.OPT_NO_THREAD] 670 self.SYNTAX_NAME, self.parseWiki, self.parseXHTML, [self._stx.OPT_NO_THREAD]
671 ) 671 )
672 672
673 def parseWiki(self, wiki_stx): 673 def parseWiki(self, wiki_stx):