Code

Models

class feedreader.models.Entry(*args, **kwargs)[source]

Feed entry information.

Fields:
feed : ForeignKey

Feed this entry is a part of.

title : char

Title of entry.

link : char

URL of entry.

description : text

Description of entry.

updated_time : date_time

When entry was last updated.

class feedreader.models.Feed(*args, **kwargs)[source]

Feed information.

Fields:
title : char

Title of feed.

xml_url : char

URL of xml feed.

link : char

URL of feed site.

description : text

Description of feed.

updated_time : date_time

When feed was last updated.

last_polled_time : date_time

When feed was last polled.

group : ForeignKey

Group this feed is a part of.

save(*args, **kwargs)[source]

Poll new Feed

class feedreader.models.Group(*args, **kwargs)[source]

Group of feeds.

Fields:
name : char

Name of group.

class feedreader.models.Options(*args, **kwargs)[source]

Options controlling feed reader behavior

Fields:
number_initially_displayed : integer

Number of entries, from all feeds, initially displayed on webpage.

number_additionally_displayed : integer

Number of entries added to displayed results when scrolling down.

max_entries_saved : integer

Maximum number of entries to store for each feed.

Views

class feedreader.views.EntryList(**kwargs)[source]

List of Entries

dispatch(request, *args, **kwargs)[source]
extra_context = {}
get_context_data(**kwargs)[source]
model

alias of Entry

template_name = 'feedreader/entry_list.html'
class feedreader.views.ExportOpml(**kwargs)[source]

Return feed subscriptions in OPML format.

get(request, *args, **kwargs)[source]
class feedreader.views.FeedList(**kwargs)[source]

List of Feeds by Group and those in no Group

dispatch(request, *args, **kwargs)[source]
extra_context = {}
get_context_data(**kwargs)[source]
model

alias of Group

template_name = 'feedreader/feed_list.html'
class feedreader.views.ImportOpml(**kwargs)[source]

Import feed subscriptions in OPML format

post(request, *args, **kwargs)[source]
class feedreader.views.MarkEntryRead(**kwargs)[source]
get(request, *args, **kwargs)[source]
class feedreader.views.NumbersUnread(**kwargs)[source]
get(request, *args, **kwargs)[source]

Count numbers of unread entries, return in json object

class feedreader.views.Search(**kwargs)[source]

Simple string search.

Display entries with titles and/or descriptions which contain the string searched for.

get(request, *args, **kwargs)[source]
template_name = 'feedreader/search_results.html'

Forms

class feedreader.forms.ImportOpmlFileForm(data=None, files=None, auto_id=u'id_%s', prefix=None, initial=None, error_class=<class 'django.forms.util.ErrorList'>, label_suffix=None, empty_permitted=False)[source]

Load local OPML xml file from browser.

class feedreader.forms.StringSearchForm(data=None, files=None, auto_id=u'id_%s', prefix=None, initial=None, error_class=<class 'django.forms.util.ErrorList'>, label_suffix=None, empty_permitted=False)[source]

Allow user to enter a string to search the for matching entries.

Utilities

feedreader.utils.build_context(request, context={})[source]

Find flag and id values in the request and use them to build a common context dictionary. Including the list of entries to display.

feedreader.utils.poll_feed(db_feed, verbose=False)[source]

Read through a feed looking for new entries.

Commands

poll_feeds

This command polls all of the Feeds and inserts any new entries found.

Table Of Contents

Previous topic

Overview

This Page