def multiDashboardView(self, request, context):
        head_template = self.head_template
        tail_template = self.tail_template

        dashboards = request.user.get_dashboards()

        if not request.user.is_appuser:
            # customize is a special dashboard they always get
            customize = DashboardView.objects.filter(name="Customize")
            if customize:
                dashboards.append(customize[0])

        tabs = []
        bodies = []

        i = 0
        for view in dashboards:
            # don't display disabled dashboards
            if (not view.enabled):
                continue

            tabs.append( '<li><a href="#dashtab-%d">%s</a></li>\n' % (i, view.name) )
            body = '<div id="dashtab-%d">%s</div>\n' % (i, self.embedDashboardView(view, i))

            bodies.append(body)
            i = i + 1

        # embed content provider dashboards
        for cp in ContentProvider.objects.all():
            if request.user in cp.users.all():
                tabs.append( '<li><a href="#dashtab-%d">%s</a></li>\n' % (i, cp.name) )

                body = ""
                body = body + '<div id="dashtab-%d">\n' % i
                body = body + self.embedDashboardUrl("http:/admin/hpc/contentprovider/%s/%s/embeddedfilteredchange" % (cp.serviceProvider.hpcService.id, cp.id))
                body = body + '</div>\n'

                bodies.append(body)
                i = i + 1

        if (len(tabs)==1) and (len(bodies) != 1):
            # there is only one dashboard, so optimize out the tabbing
            contents = bodies[0]
        else:
            contents = """
             <div id="hometabs" >
             <ul id="suit_form_tabs" class="nav nav-tabs nav-tabs-suit" data-tab-prefix="suit-tab">
             %s
             </ul>
             %s
             </div>
            """ % ("\n".join(tabs), "\n".join(bodies))

        t = template.Template(head_template + contents + self.tail_template)

        response_kwargs = {}
        response_kwargs.setdefault('content_type', self.content_type)
        return self.response_class(
            request = request,
            template = t,
            context = context,
            **response_kwargs)
dataset/ETHPy150Open open-cloud/xos/xos/core/dashboard/views/home.py/DashboardDynamicView.multiDashboardView/operator `==` -> `!=`