Mercurial > libervia-backend
comparison src/plugins/plugin_misc_static_blog.py @ 1715:b505b01195f0
plugin static blog: temporarily deactivated public blog menu
author | Goffi <goffi@goffi.org> |
---|---|
date | Wed, 02 Dec 2015 10:39:30 +0100 |
parents | 731fbed0b9cf |
children | 2daf7b4c6756 |
comparison
equal
deleted
inserted
replaced
1714:0b4c1f6ada52 | 1715:b505b01195f0 |
---|---|
72 try: # TODO: remove this attribute when all blogs can be retrieved | 72 try: # TODO: remove this attribute when all blogs can be retrieved |
73 self.domain = host.plugins['MISC-ACCOUNT'].getNewAccountDomain() | 73 self.domain = host.plugins['MISC-ACCOUNT'].getNewAccountDomain() |
74 except KeyError: | 74 except KeyError: |
75 self.domain = None | 75 self.domain = None |
76 host.memory.updateParams(self.params) | 76 host.memory.updateParams(self.params) |
77 host.importMenu((D_("User"), D_("Public blog")), self._displayPublicBlog, security_limit=1, help_string=D_("Display public blog page"), type_=C.MENU_JID_CONTEXT) | 77 # host.importMenu((D_("User"), D_("Public blog")), self._displayPublicBlog, security_limit=1, help_string=D_("Display public blog page"), type_=C.MENU_JID_CONTEXT) |
78 | 78 |
79 def _displayPublicBlog(self, menu_data, profile): | 79 def _displayPublicBlog(self, menu_data, profile): |
80 """Check if the blog can be displayed and answer the frontend. | 80 """Check if the blog can be displayed and answer the frontend. |
81 | 81 |
82 @param menu_data: %(menu_data)s | 82 @param menu_data: %(menu_data)s |