Need to log in to run reports

svn: r21054
This commit is contained in:
Doug Blank 2013-01-10 19:19:33 +00:00
parent 2255acaa62
commit 722f0f7589

View File

@ -197,6 +197,8 @@ def process_report_run(request, handle):
""" """
Run a report or export. Run a report or export.
""" """
# can also use URL with %0A as newline and "=" is "=":
# http://localhost:8000/report/ex_gpkg/run?options=off=gpkg%0Ax=10
from gramps.webapp.reports import import_file, export_file, download from gramps.webapp.reports import import_file, export_file, download
from gramps.cli.plug import run_report from gramps.cli.plug import run_report
import traceback import traceback
@ -269,8 +271,8 @@ def process_report_run(request, handle):
return send_file(request, filename, mimetype) return send_file(request, filename, mimetype)
# If failure, just fail for now: # If failure, just fail for now:
context = RequestContext(request) context = RequestContext(request)
context["message"] = "You need to be logged in." context["message"] = "You need to be logged in to run reports."
return render_to_response("process_action.html", context) return render_to_response("main_page.html", context)
def view_list(request, view): def view_list(request, view):
""" """