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

All Samples(5)  |  Call(3)  |  Derive(0)  |  Import(2)

src/m/a/madcow-HEAD/contrib/django-memebot/gruntle/memebot/models.py   madcow(Download)
 
from gruntle.memebot.fields import SerializedDataField, PickleField, AttributeManager, KeyValueManager
from gruntle.memebot.utils import blacklist, first, get_domain_from_url
from gruntle.memebot.utils.tzdatetime import tzdatetime
from gruntle.memebot.exceptions import OldMeme
    def guid(self):
        """Global unique identifier for this object"""
        id = first([getattr(self, key, None) for key in ('publish_id', 'external_id', 'id')])
        date = first([getattr(self, key, None) for key in ('published', 'activation_date', 'created', 'modified')])
        date = tzdatetime.new(date).utc
    def get_best_url(self):
        """The URL you should actually use, prefers final redirection page, if it exists"""
        return first(self.resolved_url, self.url)
 
    best_url = property(get_best_url)

src/m/a/madcow-HEAD/contrib/django-memebot/gruntle/memebot/feeds/__init__.py   madcow(Download)
from gruntle.memebot.models import SerializedData, Link
from gruntle.memebot.decorators import logged, locked
from gruntle.memebot.utils import AtomicWrite, first, plural, text, rss
 
class LinkItem(rss.Item):