def validate(self, view):
    if (not isinstance(view, self._view_type)):
        raise TypeError(('%r is not of type %r, cannot transform further.' % (view, self._view_type)))
def validate(self, view):
    if (not isinstance(view, self._view_type)):
        raise TypeError(('%r is not of type %r, cannot transform further.' % (view, self._view_type)))