(self, context)
return ''
Render.
Render.
Render .
def render(self, context):
        """Render."""
        try:
            request = context['request']
            user = request.user
        except Exception:
            return ''

        if self.layout_uid:
            layout_uid = self.layout_uid.resolve(context, True)

        else:
            try:
                layout_uid = context['layout'].uid
            except Exception:
                layout_uid = ACTIVE_LAYOUT

        workspaces = get_workspaces(user=user, layout_uid=layout_uid)

        context['workspaces'] = workspaces['workspaces']
        context['next_workspace'] = workspaces['next_workspace']
        context['previous_workspace'] = workspaces['previous_workspace']
        context['current_workspace'] = workspaces['current_workspace']
        return ''
def render ( self , context ) : try : request = context [ 'request' ] user = request . user except Exception : return '' if self . layout_uid : layout_uid = self . layout_uid . resolve ( context , True ) else : try : layout_uid = context [ 'layout' ] . uid except Exception : layout_uid = ACTIVE_LAYOUT workspaces = get_workspaces ( user = user , layout_uid = layout_uid ) context [ 'workspaces' ] = workspaces [ 'workspaces' ] context [ 'next_workspace' ] = workspaces [ 'next_workspace' ] context [ 'previous_workspace' ] = workspaces [ 'previous_workspace' ] context [ 'current_workspace' ] = workspaces [ 'current_workspace' ] return ''