Did I find the right examples for you? yes no      Crawl my project      Python Jobs

All Samples(23)  |  Call(0)  |  Derive(19)  |  Import(4)

src/d/j/django-bogofilter-0.1/bogofilter/moderation.py   django-bogofilter(Download)
from django_comments.moderation import CommentModerator
 
 
class BogofilterCommentModerator(CommentModerator):
    def moderate(self, comment, content_object, request):

src/d/j/django-contrib-comments-HEAD/tests/testapp/tests/comment_utils_moderators_tests.py   django-contrib-comments(Download)
 
from django_comments.models import Comment
from django_comments.moderation import (moderator, CommentModerator,
    AlreadyModerated)
 
from . import CommentTestCase
from ..models import Entry
 
 
class EntryModerator1(CommentModerator):
class EntryModerator2(CommentModerator):
    enable_field = 'enable_comments'
 
class EntryModerator3(CommentModerator):
    auto_close_field = 'pub_date'
    close_after = 7
 
class EntryModerator4(CommentModerator):

src/d/j/django-bogofilter-0.1/tests/testapp/tests/comment_utils_moderators_tests.py   django-bogofilter(Download)
 
from bogofilter.models import BogofilterComment
from django_comments.moderation import (moderator, CommentModerator,
    AlreadyModerated)
 
from . import CommentTestCase
from ..models import Entry
 
 
class EntryModerator1(CommentModerator):
class EntryModerator2(CommentModerator):
    enable_field = 'enable_comments'
 
class EntryModerator3(CommentModerator):
    auto_close_field = 'pub_date'
    close_after = 7
 
class EntryModerator4(CommentModerator):

src/d/j/django-contrib-comments-1.5/tests/testapp/tests/comment_utils_moderators_tests.py   django-contrib-comments(Download)
 
from django_comments.models import Comment
from django_comments.moderation import (moderator, CommentModerator,
    AlreadyModerated)
 
from . import CommentTestCase
from ..models import Entry
 
 
class EntryModerator1(CommentModerator):
class EntryModerator2(CommentModerator):
    enable_field = 'enable_comments'
 
class EntryModerator3(CommentModerator):
    auto_close_field = 'pub_date'
    close_after = 7
 
class EntryModerator4(CommentModerator):