diff src/plugins/plugin_blog_import_dokuwiki.py @ 2145:33c8c4973743

core (plugins): added missing contants + use of new constants in PLUGIN_INFO
author Goffi <goffi@goffi.org>
date Sun, 12 Feb 2017 18:59:10 +0100
parents 2daf7b4c6756
children 8b37a62336c3
line wrap: on
line diff
--- a/src/plugins/plugin_blog_import_dokuwiki.py	Sun Feb 12 17:55:43 2017 +0100
+++ b/src/plugins/plugin_blog_import_dokuwiki.py	Sun Feb 12 18:59:10 2017 +0100
@@ -43,13 +43,13 @@
     raise exceptions.MissingModule(u"Missing module pillow, please download/install it from https://python-pillow.github.io")
 
 PLUGIN_INFO = {
-    "name": "Dokuwiki import",
-    "import_name": "IMPORT_DOKUWIKI",
-    "type": C.PLUG_TYPE_BLOG,
-    "dependencies": ["BLOG_IMPORT"],
-    "main": "DokuwikiImport",
-    "handler": "no",
-    "description": _("""Blog importer for Dokuwiki blog engine.""")
+    C.PI_NAME: "Dokuwiki import",
+    C.PI_IMPORT_NAME: "IMPORT_DOKUWIKI",
+    C.PI_TYPE: C.PLUG_TYPE_BLOG,
+    C.PI_DEPENDENCIES: ["BLOG_IMPORT"],
+    C.PI_MAIN: "DokuwikiImport",
+    C.PI_HANDLER: "no",
+    C.PI_DESCRIPTION: _("""Blog importer for Dokuwiki blog engine.""")
 }
 
 SHORT_DESC = D_(u"import posts from Dokuwiki blog engine")