'Return the appropriate view from the requested backend.'

def get_view_for_backend(self, backend):

    if (backend == self.dot_adapter.backend):
        return self.dot_view.as_view()
    elif (backend == self.dop_adapter.backend):
        return self.dop_view.as_view()
    else:
        raise KeyError(u'Failed    to    dispatch    view.    Invalid    backend    {}'.format(backend))
