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

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

src/d/j/django-feedbrater-0.9.6/feeds/update.py   django-feedbrater(Download)
  # get feeds due, maximum of 5 per cycle
  feeds = Feed.objects.filter(last_checked__lt=datetime.datetime.now()-datetime.timedelta(hours=1))[:5]
  feeds = Feed.objects.all()
 
  disp = Dispatcher(options, settings.FEEDS_WORKERTHREADS)

src/d/j/django-feedbrater-0.9.6/feeds/tests.py   django-feedbrater(Download)
        Feed(feed_url=reverse('planet:rss2'), name="rss2", shortname="rss2").save()
 
        self.feed1 = Feed.objects.all()[0]
        self.feed2 = Feed.objects.all()[1]
 
    def test_feed_refresh(self):
        feed = Feed.objects.all()[0]
        result = feed_refresh(feed.id)
        self.assertGreaterEqual(result[ENTRY_NEW], 0)
        self.assertGreaterEqual(result[ENTRY_UPDATED], 0)
        self.assertGreaterEqual(result[ENTRY_SAME], 0)
        self.assertGreaterEqual(result[ENTRY_ERR], 0)
 
    def test_entry_process(self):
        f = Feed.objects.all()[0]