Mercurial > libervia-backend
comparison 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 |
comparison
equal
deleted
inserted
replaced
2144:1d3f73e065e1 | 2145:33c8c4973743 |
---|---|
41 from PIL import Image # this is already needed by plugin XEP-0054 | 41 from PIL import Image # this is already needed by plugin XEP-0054 |
42 except: | 42 except: |
43 raise exceptions.MissingModule(u"Missing module pillow, please download/install it from https://python-pillow.github.io") | 43 raise exceptions.MissingModule(u"Missing module pillow, please download/install it from https://python-pillow.github.io") |
44 | 44 |
45 PLUGIN_INFO = { | 45 PLUGIN_INFO = { |
46 "name": "Dokuwiki import", | 46 C.PI_NAME: "Dokuwiki import", |
47 "import_name": "IMPORT_DOKUWIKI", | 47 C.PI_IMPORT_NAME: "IMPORT_DOKUWIKI", |
48 "type": C.PLUG_TYPE_BLOG, | 48 C.PI_TYPE: C.PLUG_TYPE_BLOG, |
49 "dependencies": ["BLOG_IMPORT"], | 49 C.PI_DEPENDENCIES: ["BLOG_IMPORT"], |
50 "main": "DokuwikiImport", | 50 C.PI_MAIN: "DokuwikiImport", |
51 "handler": "no", | 51 C.PI_HANDLER: "no", |
52 "description": _("""Blog importer for Dokuwiki blog engine.""") | 52 C.PI_DESCRIPTION: _("""Blog importer for Dokuwiki blog engine.""") |
53 } | 53 } |
54 | 54 |
55 SHORT_DESC = D_(u"import posts from Dokuwiki blog engine") | 55 SHORT_DESC = D_(u"import posts from Dokuwiki blog engine") |
56 | 56 |
57 LONG_DESC = D_(u"""This importer handle Dokuwiki blog engine. | 57 LONG_DESC = D_(u"""This importer handle Dokuwiki blog engine. |