Mercurial > libervia-backend
comparison frontends/src/jp/cmd_blog.py @ 2485:512c443a58ba
jp (forums): forums handling commands, first draft
author | Goffi <goffi@goffi.org> |
---|---|
date | Tue, 30 Jan 2018 08:17:17 +0100 |
parents | 0046283a285d |
children | 772447ec070f |
comparison
equal
deleted
inserted
replaced
2484:785b6a1cef0a | 2485:512c443a58ba |
---|---|
173 TEMPLATE = u"blog/articles.html" | 173 TEMPLATE = u"blog/articles.html" |
174 | 174 |
175 def __init__(self, host): | 175 def __init__(self, host): |
176 extra_outputs = {'default': self.default_output, | 176 extra_outputs = {'default': self.default_output, |
177 'fancy': self.fancy_output} | 177 'fancy': self.fancy_output} |
178 base.CommandBase.__init__(self, host, 'get', use_verbose=True, use_output='complex', extra_outputs=extra_outputs, help=_(u'get blog item(s)')) | 178 base.CommandBase.__init__(self, host, 'get', use_verbose=True, use_output=C.OUTPUT_COMPLEX, extra_outputs=extra_outputs, help=_(u'get blog item(s)')) |
179 BlogCommon.__init__(self, self.host) | 179 BlogCommon.__init__(self, self.host) |
180 self.need_loop=True | 180 self.need_loop=True |
181 | 181 |
182 def add_parser_options(self): | 182 def add_parser_options(self): |
183 self.addServiceNodeArgs() | 183 self.addServiceNodeArgs() |