def available(self):
        """Do we show the portlet?"""

        pgtool = getToolByName(self.context, PLONEGLOSSARY_TOOL)
        _available = pgtool.showPortlet(self.context)
        if _available:
            _available = bool(self.definitions())
        LOG.debug("Portlet available: %s", _available)
        return _available
Exemple #2
0
    def available(self):
        """Do we show the portlet?"""

        pgtool = getToolByName(self.context, PLONEGLOSSARY_TOOL)
        _available = pgtool.showPortlet(self.context)
        if _available:
            _available = bool(self.definitions())
        LOG.debug("Portlet available: %s", _available)
        return _available
Exemple #3
0
    def available(self):
        """Do we show the portlet?"""

        _available = bool(self.definitions())
        LOG.debug("Portlet available: %s", _available)
        return _available