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>
This merges in a pull request by snipem brining in some unit tests and
bug fixes:
---
Unit tests
I've created unit tests for the module, especially for feeds and
entries. Whilst entry tests aren't fully implemented yet, unit test
cases for feed creation are complete and working. They cover the
creation of a full blown feed in Atom and RSS.
Bugs fixed
Thanks to the unit test cases, I was able to discover three bugs
concerning the fields domain, ttl and skipHours. According to the
lastest test results, they are resolved and working with both Python 2
and Python 3.
Travis support
Additionally, I've added Travis support. Which is a Continuous
Integration platform powering Github.
---
Signed-off-by: Lars Kiesow <lkiesow@uos.de>
In the context of RSS cloud domain was spelled incorrectly as ‚donain‘
which resulted in an error while unit testing. Additionally, also in
RSS ttl (Time to live) wasn’t transformed to a string.