diff src/core/constants.py @ 2369:cdaa58e14553

plugin import: generic data import plugin: this plugin handle common task for importers. Specialized importers (e.g. blog import) use it as a basic, and specific importers (e.g. Dotclear) register to the specialized one. Blog importer generic method have been moved to it.
author Goffi <goffi@goffi.org>
date Sun, 01 Oct 2017 12:21:23 +0200
parents 972e33507609
children 8b37a62336c3
line wrap: on
line diff
--- a/src/core/constants.py	Sun Oct 01 12:21:23 2017 +0200
+++ b/src/core/constants.py	Sun Oct 01 12:21:23 2017 +0200
@@ -185,7 +185,7 @@
     PI_IMPORT_NAME = u'import_name'
     PI_MAIN = u'main'
     PI_HANDLER = u'handler'
-    PI_TYPE = u'type'
+    PI_TYPE = u'type' # FIXME: should be types, and should handle single unicode type or tuple of types (e.g. "blog" and "import")
     PI_MODES = u'modes'
     PI_PROTOCOLS = u'protocols'
     PI_DEPENDENCIES = u'dependencies'
@@ -200,6 +200,7 @@
     PLUG_TYPE_SEC = "SEC"
     PLUG_TYPE_SYNTAXE = "SYNTAXE"
     PLUG_TYPE_BLOG = "BLOG"
+    PLUG_TYPE_IMPORT = "IMPORT"
     PLUG_TYPE_ENTRY_POINT = "ENTRY_POINT"
 
     # Modes