Mercurial > libervia-web
comparison src/browser/sat_browser/blog.py @ 752:9b57d117e8c5
browser side: features are checked for microblogging and group blogging. If one of them is not available, a pop-up warns it, and it is not possible to write a new entry.
author | Goffi <goffi@goffi.org> |
---|---|
date | Mon, 23 Nov 2015 23:30:34 +0100 |
parents | 0d5889b9313c |
children | f725cc49e996 |
comparison
equal
deleted
inserted
replaced
751:2ddd85551612 | 752:9b57d117e8c5 |
---|---|
394 libervia_widget.LiberviaWidget.__init__(self, host, title, selectable=True) | 394 libervia_widget.LiberviaWidget.__init__(self, host, title, selectable=True) |
395 MouseHandler.__init__(self) | 395 MouseHandler.__init__(self) |
396 self.vpanel = VerticalPanel() | 396 self.vpanel = VerticalPanel() |
397 self.vpanel.setStyleName('microblogPanel') | 397 self.vpanel.setStyleName('microblogPanel') |
398 self.setWidget(self.vpanel) | 398 self.setWidget(self.vpanel) |
399 self.addEntry(editable=True, first=True) | 399 if ((self._targets_type == C.ALL and self.host.mblog_available) or |
400 (self._targets_type == C.GROUP and self.host.groupblog_available)): | |
401 self.addEntry(editable=True, first=True) | |
400 | 402 |
401 self.getAll() | 403 self.getAll() |
402 | 404 |
403 # self.footer = HTML('', StyleName='microblogPanel_footer') | 405 # self.footer = HTML('', StyleName='microblogPanel_footer') |
404 # self.footer.waiting = False | 406 # self.footer.waiting = False |