diff 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
line wrap: on
line diff
--- a/sat/plugins/plugin_syntax_wiki_dotclear.py	Sat Jan 19 11:38:54 2019 +0100
+++ b/sat/plugins/plugin_syntax_wiki_dotclear.py	Sat Jan 19 11:39:02 2019 +0100
@@ -34,7 +34,7 @@
     C.PI_NAME: "Dotclear Wiki Syntax Plugin",
     C.PI_IMPORT_NAME: "SYNT_DC_WIKI",
     C.PI_TYPE: C.PLUG_TYPE_SYNTAXE,
-    C.PI_DEPENDENCIES: ["TEXT-SYNTAXES"],
+    C.PI_DEPENDENCIES: ["TEXT_SYNTAXES"],
     C.PI_MAIN: "DCWikiSyntax",
     C.PI_HANDLER: "",
     C.PI_DESCRIPTION: _("""Implementation of Dotclear wiki syntax"""),
@@ -665,7 +665,7 @@
         self.host = host
         self._dc_parser = DCWikiParser()
         self._xhtml_parser = XHTMLParser()
-        self._stx = self.host.plugins["TEXT-SYNTAXES"]
+        self._stx = self.host.plugins["TEXT_SYNTAXES"]
         self._stx.addSyntax(
             self.SYNTAX_NAME, self.parseWiki, self.parseXHTML, [self._stx.OPT_NO_THREAD]
         )