def _bulk_flag(self, request, queryset, action, done_message):
        n_comments = 0
        for comment in queryset:
            action(request, comment)
            n_comments += 1

        msg = ungettext(u'1 comment was successfully %(action)s.',
                        u'%(count)s comments were successfully %(action)s.',
                        n_comments)
        self.message_user(request, msg % {'count': n_comments, 'action': done_message(n_comments)})

# Only register the default admin if the model is the built-in comment model
# (this won't be true if there's a custom comment app).
Make sure raw packets load properly.
dataset/ETHPy150Open AppScale/appscale/AppServer/lib/django-1.2/django/contrib/comments/admin.py/CommentsAdmin._bulk_flag--crossover with--dataset/ETHPy150Open kisom/pypcapfile/pcapfile/test/savefile_test.py/TestCase.test_packet_valid