Пример #1
0
def updatelayers(request):
    params = request.REQUEST
    user = params.get('user',None)
    workspace = params.get('workspace', None)
    store = params.get('store',None)
    layer = params.get('layer',None)

    output = gs_slurp(ignore_errors=False, owner=user, workspace=workspace, store=store, filter=layer)
    return HttpResponse(simplejson.dumps(output))
Пример #2
0
def updatelayers(request):
    params = request.REQUEST
    #Get the owner specified in the request if any, otherwise used the logged user
    owner = params.get('owner', None)
    owner = User.objects.get(username=owner) if owner is not None else request.user
    workspace = params.get('workspace', None)
    store = params.get('store',None)
    filter = params.get('filter',None)

    output = gs_slurp(ignore_errors=False, owner=owner, workspace=workspace, store=store, filter=filter)
    return HttpResponse(simplejson.dumps(output))
Пример #3
0
def updatelayers(request):
    params = request.REQUEST
    #Get the owner specified in the request if any, otherwise used the logged user
    owner = params.get('owner', None)
    owner = User.objects.get(
        username=owner) if owner is not None else request.user
    workspace = params.get('workspace', None)
    store = params.get('store', None)
    filter = params.get('filter', None)

    output = gs_slurp(ignore_errors=False,
                      owner=owner,
                      workspace=workspace,
                      store=store,
                      filter=filter)
    return HttpResponse(simplejson.dumps(output))