Permalink
Browse files

update debugerror to use new API

  • Loading branch information...
1 parent 79395b6 commit 0a34e17e4e489d14463d12e338f0c63648c4636b aaronsw committed Sep 15, 2007
Showing with 6 additions and 6 deletions.
  1. +6 −6 trunk/web/debugerror.py
View
@@ -323,11 +323,6 @@ def emailerrors_internal():
request = web.ctx.method+' '+web.ctx.home+web.ctx.fullpath
eaddr = email_address
text = ("""\
-From: your buggy site <%(eaddr)s>
-To: the bugfixer <%(eaddr)s>
-Subject: bug: %(error_name)s: %(error_value)s (%(path)s)
-Content-Type: multipart/mixed; boundary="----here----"
-
------here----
Content-Type: text/plain
Content-Disposition: inline
@@ -341,7 +336,12 @@ def emailerrors_internal():
Content-Disposition: attachment; filename="bug.html"
""" % locals()) + str(djangoerror())
- sendmail(email_address, email_address, text)
+ sendmail(
+ "your buggy site <%s>" % eaddr,
+ "the bugfixer <%s>" % eaddr,
+ "bug: %(error_name)s: %(error_value)s (%(path)s)" % locals(),
+ text,
+ headers={'Content-Type': 'multipart/mixed; boundary="----here----"'})
return emailerrors_internal

0 comments on commit 0a34e17

Please sign in to comment.