diff frontends/src/jp/cmd_blog.py @ 2370:2c2b826b0bb3

plugin import: node can now be specified + added a "session" dict to keep import session data: import session data are data that can be used by importer to store anything which can be useful to keep between import methods.
author Goffi <goffi@goffi.org>
date Fri, 06 Oct 2017 08:52:51 +0200
parents 01877048c94a
children 8b37a62336c3
line wrap: on
line diff
--- a/frontends/src/jp/cmd_blog.py	Sun Oct 01 12:21:23 2017 +0200
+++ b/frontends/src/jp/cmd_blog.py	Fri Oct 06 08:52:51 2017 +0200
@@ -583,6 +583,8 @@
             help=_(u"importer specific options (see importer description)"))
         self.parser.add_argument('--service', type=base.unicode_decoder, default=u'', metavar=u'PUBSUB_SERVICE',
             help=_(u"PubSub service where the items must be uploaded (default: server)"))
+        self.parser.add_argument('-n', '--node', type=base.unicode_decoder, default=u'', metavar=u'PUBSUB_NODE',
+            help=_(u"PubSub node where the items must be uploaded (default: tickets' defaults)"))
         self.parser.add_argument("location", type=base.unicode_decoder, nargs='?',
             help=_(u"importer data location (see importer description), nothing to show importer description"))
 
@@ -641,7 +643,7 @@
                 options['upload_ignore_host'] = self.args.upload_ignore_host
             def gotId(id_):
                 self.progress_id = id_
-            self.host.bridge.blogImport(self.args.importer, self.args.location, options, self.args.service, self.profile,
+            self.host.bridge.blogImport(self.args.importer, self.args.location, options, self.args.service, self.args.node, self.profile,
                 callback=gotId, errback=self.error)