X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=manifold%2Fmanifoldproxy.py;h=6eb67c3a3800adc05f61e47d9b214d994cd451f5;hb=4dfd873aec658a5f2a22983c7221f8b7006aa475;hp=3ead6a3e12cf54412ba324d86a9af83865275f12;hpb=d0c1c4620fe021a2d54dec6c4519961dda867cce;p=unfold.git diff --git a/manifold/manifoldproxy.py b/manifold/manifoldproxy.py index 3ead6a3e..6eb67c3a 100644 --- a/manifold/manifoldproxy.py +++ b/manifold/manifoldproxy.py @@ -1,4 +1,6 @@ import json +import os.path + # this is for django objects only #from django.core import serializers from django.http import HttpResponse, HttpResponseForbidden @@ -53,7 +55,7 @@ with the query passed using POST""" manifold_query = Query() #manifold_query = ManifoldQuery() manifold_query.fill_from_POST(request.POST) - offline_filename="offline-%s-%s.json"%(manifold_query.action,manifold_query.object) + offline_filename="%s/../offline-%s-%s.json"%(os.path.dirname(__file__),manifold_query.action,manifold_query.object) # retrieve session for request # We allow some requests to use the ADMIN user account