diff 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
line wrap: on
line diff
--- a/src/browser/sat_browser/blog.py	Mon Nov 23 23:30:34 2015 +0100
+++ b/src/browser/sat_browser/blog.py	Mon Nov 23 23:30:34 2015 +0100
@@ -396,7 +396,9 @@
         self.vpanel = VerticalPanel()
         self.vpanel.setStyleName('microblogPanel')
         self.setWidget(self.vpanel)
-        self.addEntry(editable=True, first=True)
+        if ((self._targets_type == C.ALL and self.host.mblog_available) or
+            (self._targets_type == C.GROUP and self.host.groupblog_available)):
+            self.addEntry(editable=True, first=True)
 
         self.getAll()