diff options
author | Michael Elkins <melkins@tislabs.com> | 2013-04-03 21:47:53 +0000 |
---|---|---|
committer | Michael Elkins <melkins@tislabs.com> | 2013-04-03 21:47:53 +0000 |
commit | 01f2d809570964c09408c3c81d642d5d4c6382e4 (patch) | |
tree | 2443c8fc70530ec62a69bcb88ebe3dc6ea3c8b5e /rpkid/rpki/gui/app/glue.py | |
parent | 54af2beac87f906f886a29bbd884886b0d662ba0 (diff) | |
parent | 3f0a32b5756d9c76305de6225bbeb92601e9170c (diff) |
merge /branches/tk500
closes #500
svn path=/trunk/; revision=5264
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 |