diff options
author | Michael Elkins <melkins@tislabs.com> | 2013-04-03 18:45:06 +0000 |
---|---|---|
committer | Michael Elkins <melkins@tislabs.com> | 2013-04-03 18:45:06 +0000 |
commit | 4a8f6d69c9950fd8509f0f3462ad50ad341d6725 (patch) | |
tree | 456c7ea36fd5566cd6995d0a3b4e1871ab2e5fb0 /rpkid/rpki/gui/app/glue.py | |
parent | d0e81d8047779b7889e8773c964c2a35c1674dc4 (diff) |
remove get_email_list() and replace with calls to Conf.send_alert()
svn path=/branches/tk500/; revision=5260
Diffstat (limited to 'rpkid/rpki/gui/app/glue.py')
-rw-r--r-- | rpkid/rpki/gui/app/glue.py | 22 |
1 files changed, 0 insertions, 22 deletions
diff --git a/rpkid/rpki/gui/app/glue.py b/rpkid/rpki/gui/app/glue.py index 03225de7..f6ec4344 100644 --- a/rpkid/rpki/gui/app/glue.py +++ b/rpkid/rpki/gui/app/glue.py @@ -108,25 +108,3 @@ def list_received_resources(log, conf): prefix_max=rng.max) else: print >>log, "error: unexpected pdu from rpkid type=%s" % type(pdu) - - -def get_email_list(conf): - """Return a list of the contact emails for this user. - - Contact emails are extract from any ghostbuster requests, and if there are - none, returns the default email for the web portal account. - - """ - notify_emails = [] - qs = models.GhostbusterRequest.objects.filter(issuer=conf) - for gbr in qs: - if gbr.email_address: - notify_emails.append(gbr.email_address) - - if len(notify_emails) == 0: - # fall back to the email address registered for this user - user = User.objects.get(username=conf.handle) - if user.email: - notify_emails.append(user.email) - - return notify_emails |