(self, context)
Render.
Render.
Render .
def render(self, context):
        """Render."""
        try:
            perms = context['perms']
        except Exception as e:
            if self.as_var:
                context[self.as_var] = False
                return ''
            else:
                return False

        perms_required = [
            'dash.add_dashboardentry',
            'dash.change_dashboardentry',
            'dash.delete_dashboardentry',
            'dash.add_dashboardworkspace',
            'dash.change_dashboardworkspace',
            'dash.delete_dashboardworkspace',
            'dash.add_dashboardsettings',
            'dash.change_dashboardsettings',
            'dash.delete_dashboardsettings',
        ]

        for perm in perms_required:
            if perm in perms:
                if self.as_var:
                    context[self.as_var] = True
                    return ''
                else:
                    return True

        if self.as_var:
            context[self.as_var] = False
            return ''
        else:
            return False
def render ( self , context ) : try : perms = context [ 'perms' ] except Exception as e : if self . as_var : context [ self . as_var ] = False return '' else : return False perms_required = [ 'dash.add_dashboardentry' , 'dash.change_dashboardentry' , 'dash.delete_dashboardentry' , 'dash.add_dashboardworkspace' , 'dash.change_dashboardworkspace' , 'dash.delete_dashboardworkspace' , 'dash.add_dashboardsettings' , 'dash.change_dashboardsettings' , 'dash.delete_dashboardsettings' , ] for perm in perms_required : if perm in perms : if self . as_var : context [ self . as_var ] = True return '' else : return True if self . as_var : context [ self . as_var ] = False return '' else : return False