-
Notifications
You must be signed in to change notification settings - Fork 422
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Adds an RSS feed of the /stream page to h.feeds. Also does some refactorings, including: Don't use Pyramid renderers for Atom and RSS Our Atom and RSS renderers are too specific for implementing them as renderers to really be useful. All they do is produce Atom and RSS feeds from lists of annotations, as opposed to more generic things like Pyramid's JSON or Jinja2 renderers. They can be implemented as simple functions just as usefully, and then the code is easier to understand for not using the framework-specific renderer concept. Change util functions into Annotation properties Change shared util functions for dealing with annotations as dicts into properties on the Annotation object instead. This is just nicer.
- Loading branch information
Showing
20 changed files
with
816 additions
and
839 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
"""Code for generating feeds (e.g. Atom and RSS feeds).""" | ||
from h.feeds.render import render_atom | ||
from h.feeds.render import render_rss | ||
|
||
|
||
def includeme(config): | ||
config.include('.views') |
Oops, something went wrong.