Mercurial > libervia-backend
comparison 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 |
comparison
equal
deleted
inserted
replaced
2368:3865a772c360 | 2369:cdaa58e14553 |
---|---|
183 # to make the header more readable | 183 # to make the header more readable |
184 PI_NAME = u'name' | 184 PI_NAME = u'name' |
185 PI_IMPORT_NAME = u'import_name' | 185 PI_IMPORT_NAME = u'import_name' |
186 PI_MAIN = u'main' | 186 PI_MAIN = u'main' |
187 PI_HANDLER = u'handler' | 187 PI_HANDLER = u'handler' |
188 PI_TYPE = u'type' | 188 PI_TYPE = u'type' #Â FIXME: should be types, and should handle single unicode type or tuple of types (e.g. "blog" and "import") |
189 PI_MODES = u'modes' | 189 PI_MODES = u'modes' |
190 PI_PROTOCOLS = u'protocols' | 190 PI_PROTOCOLS = u'protocols' |
191 PI_DEPENDENCIES = u'dependencies' | 191 PI_DEPENDENCIES = u'dependencies' |
192 PI_RECOMMENDATIONS = u'recommendations' | 192 PI_RECOMMENDATIONS = u'recommendations' |
193 PI_DESCRIPTION = u'description' | 193 PI_DESCRIPTION = u'description' |
198 PLUG_TYPE_MISC = "MISC" | 198 PLUG_TYPE_MISC = "MISC" |
199 PLUG_TYPE_EXP = "EXP" | 199 PLUG_TYPE_EXP = "EXP" |
200 PLUG_TYPE_SEC = "SEC" | 200 PLUG_TYPE_SEC = "SEC" |
201 PLUG_TYPE_SYNTAXE = "SYNTAXE" | 201 PLUG_TYPE_SYNTAXE = "SYNTAXE" |
202 PLUG_TYPE_BLOG = "BLOG" | 202 PLUG_TYPE_BLOG = "BLOG" |
203 PLUG_TYPE_IMPORT = "IMPORT" | |
203 PLUG_TYPE_ENTRY_POINT = "ENTRY_POINT" | 204 PLUG_TYPE_ENTRY_POINT = "ENTRY_POINT" |
204 | 205 |
205 # Modes | 206 # Modes |
206 PLUG_MODE_CLIENT = "client" | 207 PLUG_MODE_CLIENT = "client" |
207 PLUG_MODE_COMPONENT = "component" | 208 PLUG_MODE_COMPONENT = "component" |