def handle_noargs(self, **kwargs):
        try:
            verbosity = int(kwargs['verbosity'])
        except (__HOLE__, TypeError, ValueError):
            verbosity = 1

        feeds = Feed.objects.filter(approval_status=PENDING_FEED)
        to_email = [x.email for x in User.objects.filter(groups__name=settings.FEED_APPROVERS_GROUP_NAME)]

        if len(feeds) == 0:
            if verbosity >= 1:
                print "There are no pending feeds. Skipping the email."
            return
        site = Site.objects.get(pk=1)
        email = """The following feeds are pending approval:
{% regroup feeds by feed_type as feed_grouping %}{% for group in feed_grouping %}
{{ group.grouper }} {% for feed in group.list %}
 - {{ feed.title }} ( {{ feed.feed_url }} ) {% endfor %}
{% endfor %}

To approve them, visit: http://{{ site.domain }}{% url admin:aggregator_feed_changelist %}
"""

        message = Template(email).render(Context({'feeds': feeds, 'site': site}))
        if verbosity >= 2:
            print "Pending approval email:\n"
            print message

        mail.send_mail("django community feeds pending approval", message,
                       'nobody@%s' % site.domain,
                       to_email,
                       fail_silently=False)

        if verbosity >= 1:
            print "Sent pending approval email to: %s" % (', '.join(to_email))
dataset/ETHPy150Open python/raspberryio/raspberryio/aggregator/management/commands/send_pending_approval_email.py/Command.handle_noargs