def allowed(self, context):

        # if the dashboard has policy rules, honor those above individual
        # panels
        if not self._can_access(context['request']):
            return False

        # check if access is allowed to a single panel,
        # the default for each panel is True
        for panel in self.get_panels():
            if panel.can_access(context):
                return True

        return False
Returns a dictionary mapping command names to their callback applications.
dataset/ETHPy150Open CiscoSystems/avos/horizon/base.py/Dashboard.allowed--crossover with--dataset/ETHPy150Open AppScale/appscale/AppServer/lib/django-1.2/django/core/management/__init__.py/get_commands