summaryrefslogtreecommitdiff
path: root/misc/dashboard/godashboard/package.py
diff options
context:
space:
mode:
authorOndřej Surý <ondrej@sury.org>2011-04-20 15:44:41 +0200
committerOndřej Surý <ondrej@sury.org>2011-04-20 15:44:41 +0200
commit50104cc32a498f7517a51c8dc93106c51c7a54b4 (patch)
tree47af80be259cc7c45d0eaec7d42e61fa38c8e4fb /misc/dashboard/godashboard/package.py
parentc072558b90f1bbedc2022b0f30c8b1ac4712538e (diff)
downloadgolang-50104cc32a498f7517a51c8dc93106c51c7a54b4.tar.gz
Imported Upstream version 2011.03.07.1upstream/2011.03.07.1
Diffstat (limited to 'misc/dashboard/godashboard/package.py')
-rw-r--r--misc/dashboard/godashboard/package.py9
1 files changed, 4 insertions, 5 deletions
diff --git a/misc/dashboard/godashboard/package.py b/misc/dashboard/godashboard/package.py
index cf59bf3e8..7570d2218 100644
--- a/misc/dashboard/godashboard/package.py
+++ b/misc/dashboard/godashboard/package.py
@@ -5,10 +5,6 @@
# This is the server part of the package dashboard.
# It must be run by App Engine.
-mail_to = "adg@golang.org"
-mail_from = "Go Dashboard <adg@golang.org>"
-mail_subject = "New Project Submitted"
-
from google.appengine.api import memcache
from google.appengine.runtime import DeadlineExceededError
from google.appengine.ext import db
@@ -32,6 +28,7 @@ import sets
# local imports
import toutf8
+import const
template.register_template_library('toutf8')
@@ -241,7 +238,9 @@ class ProjectPage(webapp.RequestHandler):
path = os.path.join(os.path.dirname(__file__), 'project-notify.txt')
mail.send_mail(
- sender=mail_from, to=mail_to, subject=mail_subject,
+ sender=const.mail_from,
+ to=const.mail_submit_to,
+ subject=const.mail_submit_subject,
body=template.render(path, {'project': p}))
self.list({"submitMsg": "Your project has been submitted."})