'Sets request.fs and request.jt on every request to point to the
configured filesystem.'

def process_view(self, request, view_func, view_args, view_kwargs):

    request.fs_ref = request.REQUEST.get('fs', view_kwargs.get('fs', 'default'))
    if ('fs' in view_kwargs):
        del view_kwargs['fs']
    request.fs = fsmanager.get_filesystem(request.fs_ref)
    if request.user.is_authenticated():
        if (request.fs is not None):
            request.fs.setuser(request.user.username)
        request.jt = cluster.get_default_mrcluster()
        if (request.jt is not None):
            request.jt.setuser(request.user.username)
    else:
        request.jt = None
