comparison src/plugins/plugin_blog_import.py @ 2396:66baa687c682

plugins tickets import, jp (ticket/import): implemented mapping: - mapping is an option allowing do map imported field to a specific field in the newly created item - importers can now use complexe data types in options using JSON
author Goffi <goffi@goffi.org>
date Fri, 27 Oct 2017 17:58:05 +0200
parents 2c2b826b0bb3
children 8b37a62336c3
comparison
equal deleted inserted replaced
2395:713cedc99752 2396:66baa687c682
52 URL_REDIRECT_PREFIX = 'url_redirect_' 52 URL_REDIRECT_PREFIX = 'url_redirect_'
53 53
54 54
55 class BlogImportPlugin(object): 55 class BlogImportPlugin(object):
56 BOOL_OPTIONS = (OPT_UPLOAD_IMAGES, OPT_IGNORE_TLS) 56 BOOL_OPTIONS = (OPT_UPLOAD_IMAGES, OPT_IGNORE_TLS)
57 JSON_OPTIONS = ()
57 OPT_DEFAULTS = {OPT_UPLOAD_IMAGES: True, 58 OPT_DEFAULTS = {OPT_UPLOAD_IMAGES: True,
58 OPT_IGNORE_TLS: False} 59 OPT_IGNORE_TLS: False}
59 60
60 def __init__(self, host): 61 def __init__(self, host):
61 log.info(_("plugin Blog Import initialization")) 62 log.info(_("plugin Blog Import initialization"))