From bbbcde2e4714d760ef0c6e0a936ef4cdd82811d8 Mon Sep 17 00:00:00 2001 From: dbs Date: Wed, 31 Oct 2007 02:55:52 +0000 Subject: [PATCH] Set default reporter output directory to a Web-visible location. Add basic email templates for report notification. git-svn-id: svn://svn.open-ils.org/ILS/trunk@7949 dcc99617-32d9-48b4-a31d-7c20da2025e4 --- Open-ILS/examples/opensrf.xml.example | 2 +- Open-ILS/src/reporter/report_failure.tmpl | 10 ++++++++++ Open-ILS/src/reporter/report_success.tmpl | 10 ++++++++++ 3 files changed, 21 insertions(+), 1 deletion(-) create mode 100644 Open-ILS/src/reporter/report_failure.tmpl create mode 100644 Open-ILS/src/reporter/report_success.tmpl diff --git a/Open-ILS/examples/opensrf.xml.example b/Open-ILS/examples/opensrf.xml.example index 7239f46e09..0a1bec1fe1 100644 --- a/Open-ILS/examples/opensrf.xml.example +++ b/Open-ILS/examples/opensrf.xml.example @@ -58,7 +58,7 @@ Example opensrf config file for OpenILS - /openils/var/reporter/output + /openils/var/web/reporter/output /openils/var/data/report-success /openils/var/data/report-fail diff --git a/Open-ILS/src/reporter/report_failure.tmpl b/Open-ILS/src/reporter/report_failure.tmpl new file mode 100644 index 0000000000..b55dd240da --- /dev/null +++ b/Open-ILS/src/reporter/report_failure.tmpl @@ -0,0 +1,10 @@ +To: {TO} +From: {FROM} +Reply-To: {REPLY-TO} +Subject: Report finished: "{REPORT_NAME}" + +At {RUN_TIME} the report "{REPORT_NAME}" finished running with a complete +time of {COMPLETE_TIME}. + +You can view the report at the following URL: +{OUTPUT_URL} diff --git a/Open-ILS/src/reporter/report_success.tmpl b/Open-ILS/src/reporter/report_success.tmpl new file mode 100644 index 0000000000..b55dd240da --- /dev/null +++ b/Open-ILS/src/reporter/report_success.tmpl @@ -0,0 +1,10 @@ +To: {TO} +From: {FROM} +Reply-To: {REPLY-TO} +Subject: Report finished: "{REPORT_NAME}" + +At {RUN_TIME} the report "{REPORT_NAME}" finished running with a complete +time of {COMPLETE_TIME}. + +You can view the report at the following URL: +{OUTPUT_URL} -- 2.11.0