Set default reporter output directory to a Web-visible location.
authordbs <dbs@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Wed, 31 Oct 2007 02:55:52 +0000 (02:55 +0000)
committerdbs <dbs@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Wed, 31 Oct 2007 02:55:52 +0000 (02:55 +0000)
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
Open-ILS/src/reporter/report_failure.tmpl [new file with mode: 0644]
Open-ILS/src/reporter/report_success.tmpl [new file with mode: 0644]

index 7239f46..0a1bec1 100644 (file)
@@ -58,7 +58,7 @@ Example opensrf config file for OpenILS
                 </database>
                 <files>
                     <!-- successful report outputs go here -->
-                    <output_base>/openils/var/reporter/output</output_base>
+                    <output_base>/openils/var/web/reporter/output</output_base>
                     <success_template>/openils/var/data/report-success</success_template>
                     <fail_template>/openils/var/data/report-fail</fail_template>
                 </files>
diff --git a/Open-ILS/src/reporter/report_failure.tmpl b/Open-ILS/src/reporter/report_failure.tmpl
new file mode 100644 (file)
index 0000000..b55dd24
--- /dev/null
@@ -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 (file)
index 0000000..b55dd24
--- /dev/null
@@ -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}