

def _bulk_flag(self, request, queryset, action, done_message):
    '\n        Flag, approve, or remove some comments from an admin action. Actually\n        calls the `action` argument to perform the heavy lifting.\n        '
    n_comments = 0
    for comment in queryset:
        action(request, comment)
        n_comments += 1
    msg = ungettext('1 comment was successfully %(action)s.', '%(count)s comments were successfully %(action)s.', n_comments)
    self.message_user(n_comments, (msg % {
        'count': n_comments,
        'action': done_message(n_comments),
    }))

dataset/ETHPy150Open AppScale/appscale/AppServer/lib/django-1.2/django/contrib/comments/admin.py CommentsAdmin._bulk_flag/VarMisuse@58/154 `request`->`n_comments`