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

All Samples(4)  |  Call(1)  |  Derive(0)  |  Import(3)

src/m/a/madcow-HEAD/contrib/django-memebot/gruntle/memebot/models.py   madcow(Download)
from gruntle.memebot.utils import blacklist, first, get_domain_from_url
from gruntle.memebot.utils.tzdatetime import tzdatetime
from gruntle.memebot.exceptions import OldMeme
 
current_site = Site.objects.get_current()
                poster_profile.reposts += 1
                poster_profile.save()
                raise OldMeme(link)
        except self.model.DoesNotExist:
            link = self.create(user=user, source=source, url=url, normalized=normalized, **kwargs)

src/m/a/madcow-HEAD/contrib/django-memebot/gruntle/memebot/management/commands/replay.py   madcow(Download)
from gruntle.memebot.utils import get_logger
from gruntle.memebot.models import Link
from gruntle.memebot.exceptions import OldMeme, BlackListError
 
USAGE_ERROR = 2

src/m/a/madcow-HEAD/madcow/modules/djmemebot.py   madcow(Download)
    def process_url(self, url, nick, source_name):
        from gruntle.memebot.models import Link
        from gruntle.memebot.exceptions import OldMeme, BlackListError
        try:
            link = Link.objects.add_link(url, nick.lower(), source_name.lower(), settings.PROTOCOL)