Added some Tag support; renamed Report items from textreport to report to be more general; added super user admin return and editing of profile/user

svn: r19735
This commit is contained in:
Doug Blank
2012-06-01 16:00:24 +00:00
parent aaf600985c
commit 5763a57985
7 changed files with 59 additions and 19 deletions

View File

@@ -188,7 +188,8 @@ def process_report_run(request, handle):
if "=" in pair:
key, value = pair.split("=", 1)
args[key] = value
if report.report_type == "textreport":
#############################################################################
if report.report_type == "report":
filename = "/tmp/%s-%s.%s" % (str(profile.user.username), str(handle), args["off"])
run_report(db, handle, of=filename, **args)
mimetype = 'application/%s' % args["off"]