Commit graph

46 commits

Author SHA1 Message Date
Michael Scherer
9d6827dedd
Fix typo 2018-12-14 14:50:36 -05:00
Lars Kiesow
c6c7165a97
Add Source Element to Feed Entries
This patch implements the source element for feed entries/items. Note
that only the set of RSS elements (URL and title) are implemented right
now. ATOM supports additional elements which cannot be set at the
moment.

This fixes #79
2018-08-12 21:07:47 +02:00
Lars Kiesow
1b301f67ad
Fix typo in docstring 2018-08-12 21:07:15 +02:00
daryl herzmann
cfaeb68898
allow CDATA content to go to RSS description
This allows feed entry `content` specified with `type="CDATA"` to be translated to RSS description with CDATA specified
2018-07-07 21:27:22 -05:00
Unit 193
9da6b17ca2 Fix a few typos.
deprected → deprecated
instanciate → instantiate
repostiory → repository
ressource → resource
2018-07-04 03:29:15 -04:00
Lars Kiesow
7a053dc74c
Consistent method naming
This patch renames the entries `pubdate` method to `pubDate` to be
consistent with the feed's method as well as the documentation. Note
that for now, the old method is preserved as well but is marked as
deprecated and to be removed.

This fixes #71
2018-04-29 21:11:30 +02:00
Lars Kiesow
fccb05f151
Merge branch 'master' of https://github.com/EdwardBetts/python-feedgen 2018-03-04 20:16:01 +01:00
Lars Kiesow
9026316391
Use isort to sort import
…so that they all have the same structure.
2018-03-04 20:05:29 +01:00
Edward Betts
95d6fd3065 Correct spelling mistakes. 2018-03-04 09:52:55 +00:00
Lars Kiesow
9f05e108b5
Merge branch 'issue-60-guid-permalink-attr' 2017-10-14 21:24:09 +02:00
Lars Kiesow
ebb44be9b2 Make Author's Name Optional
RSS does not require an author's name, but only his email address. This
patch makes the name optional for RSS. Note that the name is required in
ATOM feeds and an author will not be included if the name is missing.

This fixes #59
2017-10-14 19:58:37 +02:00
Lars Kiesow
281765fefd
Add Permalink Attribute To RSS GUID
The `isPermalink` attribute can now be set using the `guid()` function
for entries. Note that this only effects RSS feeds. This patch does not
change Atom feeds in any way.

This fixes #60
2017-10-14 19:51:02 +02:00
Lars Kiesow
4314475bfb
Extended test Coverage
This patch extends the test coverage of the unit tests. It also enables
python-coverage and coveralls to track unit test coverage.

There are some additional minor issue fixed discovered during the test
creation.

Signed-off-by: Lars Kiesow <lkiesow@uos.de>
2017-02-05 22:03:02 +01:00
Lars Kiesow
444855a248
Flake8 Compatibility
This patch makes the feedgen flake8 compatible, fixing some minor issues
along the way. Most noticeable, this switches from tabs to spaces.

Signed-off-by: Lars Kiesow <lkiesow@uos.de>
2017-01-05 00:39:33 +01:00
Zhiming Wang
9f4431880e
Rename url to uri in Atom feeds
According to RFC 4287, there is no atom:url element, only atom:uri, so
replace occurrences of atom:url with atom:uri for compliance.

Also rename variables holding atom:uri from email to uri to better
indicate what they actually are.
2016-12-19 01:11:33 -05:00
Lars Kiesow
303e74dc7a
Fixed registration of custom extensions
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>
2016-08-28 20:54:11 +02:00
Lars Kiesow
1a2c032654 Merge branch 'feature-load_extension' of https://github.com/jvanasco/python-feedgen into custom-extensions 2016-08-28 19:11:13 +02:00
jonathan vanasco
4f48bc1213 allowing pluggable extensions 2016-03-08 22:46:07 -05:00
Russel Mahmud
5724c569b1 Fix atom content type CDATA 2016-03-03 15:26:55 +06:00
Lars Kiesow
9819fd98b3
Fixed #26, Fixed Localized Time Formatting Issues
Signed-off-by: Lars Kiesow <lkiesow@uos.de>
2015-10-28 23:20:51 +01:00
Lars Kiesow
eca772f0b6
Merge branch 'for-pr-omitsix' of https://github.com/masayuko/python-feedgen
Signed-off-by: Lars Kiesow <lkiesow@uos.de>
2015-10-28 23:00:06 +01:00
IGARASHI Masanao
2f3c7dfe85 Fix typo, schema to scheme 2015-04-25 07:06:14 +09:00
IGARASHI Masanao
206e72cc23 Remove six dependency 2015-04-24 21:43:29 +09:00
Lars Kiesow
7d1bda868d
Fixed #24 Categories For Feed Entries
Signed-off-by: Lars Kiesow <lkiesow@uos.de>
2015-01-03 23:27:52 +01:00
Vincent Driessen
626d9df6c4 Add Python 3 compatibility. 2015-01-03 22:34:33 +01:00
Shekhar
5353f3ede5 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
2014-06-20 10:05:34 +05:30
wltb
bf6b8af249 Feed Creation: Add a separate extension call for namespace stuff. Change extensions accordingly.
Entry creation: Entries create their own XML Element, which is put into the feed by the caller
2014-05-06 10:43:39 +02:00
wltb
2e7b343857 Add content namespace and semantics for RSS 2014-05-01 01:28:09 +02:00
wltb
b3fb2ba777 Implement action for items in the dc extension. 2014-04-21 17:54:38 +02:00
Jimmy
ec4aa780c2 author is not required by rss. 2013-11-30 22:11:22 +01:00
Jimmy
b4a68f431d Make 'alternate' to the default rel value. 2013-11-30 22:10:14 +01:00
Lars Kiesow
eb5c285952 Fixed bug with non-existing type attributes 2013-09-29 19:48:33 +02:00
Lars Kiesow
6b2a2a5232 Fixed <published> attribute in Atom feed entries 2013-09-28 01:19:04 +02:00
Lars Kiesow
8b18122cfd Support of different types of content
Now the content element now supports the type attribute and the content
is encoded accordingly:
 - text and html are escaped
 - xhtml is surrounded with a div and then included as XML
 - XML is directly included
 - base64 support was *not* added. Please file a bug if you need it
2013-09-28 01:00:11 +02:00
Lars Kiesow
8b87fa67ad Fixed issue with alternate link instead of content for atom entries
...won't let me generate atom entries without a content tag even though
I have a correct link tag...
2013-09-23 14:35:59 +02:00
emacsen
29838e1f71 Fix typo found in enclosure function 2013-07-14 11:43:41 -04:00
Lars Kiesow
66689be7ff Proper initialization 2013-05-16 19:04:03 +02:00
Lars Kiesow
0a38947252 Changed RFC822 dates 2013-05-14 18:15:58 +02:00
Lars Kiesow
f47783cfb0 Fixed that ValueError was not raised 2013-05-14 17:53:18 +02:00
Lars Kiesow
3044c782e5 Fixed xml generation of entry 2013-05-14 17:46:21 +02:00
Lars Kiesow
c56f8a52aa Fixed string check 2013-05-13 17:50:03 +02:00
Lars Kiesow
8086f2112e fixed docstrings 2013-05-13 17:48:51 +02:00
Lars Kiesow
840dc7e5b8 Added extension support and converted PodcastGenerator to extension 2013-05-05 18:17:44 +02:00
Lars Kiesow
671841be6d removed shebang from library files 2013-05-05 00:05:11 +02:00
Lars Kiesow
66f8f3d8e9 renamed feedgenerator to feedgen 2013-05-04 22:54:43 +02:00
Lars Kiesow
e1a5a8e7a0 renamed feedgenerator to feedgen (files) 2013-05-04 22:45:24 +02:00
Renamed from feedgenerator/entry.py (Browse further)