Don't use print! Pah!
authorMagnus Hagander <magnus@hagander.net>
Thu, 20 Nov 2008 14:27:08 +0000 (14:27 +0000)
committerMagnus Hagander <magnus@hagander.net>
Thu, 20 Nov 2008 14:27:08 +0000 (14:27 +0000)
Also, include some more info in the registration email

planetadmin/register/views.py

index 1badcd210a726ba4ed3e98d0e2e6dde1c4d6fa5e..7a97de98cacc6c36d60d437d98a708f2ecbc82e9 100644 (file)
@@ -75,7 +75,6 @@ So, head off to the admin interface and approve or reject this!
                if l < 1:
                        return HttpResponse('Blog feed contains no entries.')
        except Exception, e:
-               print e
                return HttpResponse('Failed to download blog feed')
        if not status == 200:
                return HttpResponse('Attempt to download blog feed returned status %s.' % (status))
@@ -94,11 +93,11 @@ So, head off to the admin interface and approve or reject this!
        blog.approved = False
        send_mail('New blog assignment', """
 The user '%s' has requested the blog at
-%s
+%s (name %s)
 is added to Planet PostgreSQL!
 
 So, head off to the admin interface and approve or reject this!
-""" % (blog.userid, blog.feedurl), 'webmaster@postgresql.org', [settings.NOTIFYADDR])
+""" % (blog.userid, blog.feedurl, blog.name), 'webmaster@postgresql.org', [settings.NOTIFYADDR])
 
        blog.save()
        AuditEntry(request.user.username, 'Added blog %s' % blog.feedurl).save()