comparison frontends/src/jp/cmd_blog.py @ 1840:9eabf7fadfdd

frontends (jp): onActionNew displays xmlui message if no meta_type is defined and xmlui is defined
author souliane <souliane@mailoo.org>
date Thu, 04 Feb 2016 11:48:37 +0100
parents cdecf553e051
children 96ba685162f6
comparison
equal deleted inserted replaced
1839:cdecf553e051 1840:9eabf7fadfdd
25 URL_REDIRECT_PREFIX = 'url_redirect_' 25 URL_REDIRECT_PREFIX = 'url_redirect_'
26 26
27 __commands__ = ["Blog"] 27 __commands__ = ["Blog"]
28 28
29 29
30 class Import(base.CommandBase): 30 class Import(base.CommandAnswering):
31 def __init__(self, host): 31 def __init__(self, host):
32 super(Import, self).__init__(host, 'import', use_progress=True, help=_(u'import an external blog')) 32 super(Import, self).__init__(host, 'import', use_progress=True, help=_(u'import an external blog'))
33 33
34 def add_parser_options(self): 34 def add_parser_options(self):
35 self.parser.add_argument("importer", type=base.unicode_decoder, nargs='?', help=_(u"importer name, nothing to display importers list")) 35 self.parser.add_argument("importer", type=base.unicode_decoder, nargs='?', help=_(u"importer name, nothing to display importers list"))