This fixes some minor problems with the pull request from jvanasco so
that it may be included into the next release:
- Only one extension registry is used internally and custom extensions
do not have to be stored two times.
- Fix the bug that entry extensions were loaded for feeds.
- Do not fail if there is only a feed extension.
- Extensions for entries do not need a feed extension class.
Signed-off-by: Lars Kiesow <lkiesow@uos.de>
This pull request fixes the problem that right now, if you select
content type CDATA for atom feed like this:
feed_entry.content('content', type="CDATA")
it raises a TypeError: Argument must be bytes or unicode, got 'dict'.
When piping to stdout the special handling for Pthon 3 will cause
problems in Python 2 and produce an Unicode encoding error. This commit
separates the output handling of both Python versions.
Signed-off-by: Lars Kiesow <lkiesow@uos.de>
- Syndication extension
- Remove six dependency
- Fix typo, schema to scheme
- Fixed Localized Time Formatting Issues
- Added Support for XML Declaration
Signed-off-by: Lars Kiesow <lkiesow@uos.de>
All XML generation methods now have an optional argument
`xml_declaration` which, set to True, will add an XML declaration to the
output. By default, the argument is set to True.
Signed-off-by: Lars Kiesow <lkiesow@uos.de>
- Fixed several minor bugs
- Code cleanup of extensions (API change!)
- Added unit tests
Thanks to all contributors!
Signed-off-by: Lars Kiesow <lkiesow@uos.de>
This merges in a pull request by Shekhar, adding support for CDATA
content:
---
If type specified CDATA content won't be escaped. This makes it easier
for RSS publishers and readers. Also adheres CDATA recommendation at
http://www.rssboard.org/rss-profile#element-channel-item-description
---
Signed-off-by: Lars Kiesow <lkiesow@uos.de>
This fixes some small issues with the unit tests and adding a test case
to the Makefile so that all tests can easily be invoked by running:
make test
Signed-off-by: Lars Kiesow <lkiesow@uos.de>