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

All Samples(13)  |  Call(0)  |  Derive(7)  |  Import(6)

src/b/a/batucada-HEAD/apps/challenges/feeds.py   batucada(Download)
from django.core.urlresolvers import reverse
from django.shortcuts import get_object_or_404
from django_push.publisher.feeds import Feed, HubAtom1Feed
 
from projects.models import Project
from challenges.models import Challenge, Submission
 
 
class ChallengesFeed(Feed):
class SubmissionsFeed(Feed):
    feed_type = HubAtom1Feed
 
    def get_object(self, request, challenge):
        return get_object_or_404(Challenge, slug=challenge)

src/b/a/batucada-HEAD/apps/activity/feeds.py   batucada(Download)
from django.utils.feedgenerator import rfc3339_date
 
from django_push.publisher.feeds import Feed, HubAtom1Feed
from activity.models import Activity
from projects.models import Project
class UserActivityFeed(Feed):
    """Atom feed of user activities."""
 
    feed_type = ActivityStreamAtomFeed
 

src/d/j/djang0byte-HEAD/src/feed/models.py   djang0byte(Download)
#       Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
#       MA 02110-1301, USA.
from django_push.publisher.feeds import Feed
from tagging.models import TaggedItem
from django.contrib.auth.models import User
class PostFeed(Feed):
    title = getattr(settings, 'SITENAME')
    link = "/rss/"
 
    def get_object(self, request, type = None, value = None):

src/d/j/django-coop-0.7.3/coop/feeds.py   django-coop(Download)
# -*- coding:utf-8 -*-
from django.utils.translation import ugettext_lazy as _
from django.contrib.sites.models import Site
from django_push.publisher.feeds import Feed
from django.db.models.loading import get_model
class UpdateFeed(Feed):
    title = _(u"Updates for %s." % Site.objects.get_current().name)
    link = "/feed/"
    description = _(u"All records updates listed on the %s website." % Site.objects.get_current().name)
    hub = "http://%s/hub/" % Site.objects.get_current()

src/d/j/django-coop-HEAD/coop/feeds.py   django-coop(Download)
# -*- coding:utf-8 -*-
from django.utils.translation import ugettext_lazy as _
from django.contrib.sites.models import Site
from django_push.publisher.feeds import Feed
from django.db.models.loading import get_model
class UpdateFeed(Feed):
    title = _(u"Updates for %s." % Site.objects.get_current().name)
    link = "/feed/"
    description = _(u"All records updates listed on the %s website." % Site.objects.get_current().name)
    hub = "http://%s/hub/" % Site.objects.get_current()

src/d/j/django-push-HEAD/tests/publisher/feeds.py   django-push(Download)
from django_push.publisher.feeds import Feed
 
 
class HubFeed(Feed):
    link = '/feed/'