Dannieboy
0a11860e01
Made the module less strict without breaking the atom standart.
2021-01-01 00:00:01 +01:00
Lars Kiesow
0eb12f9133
Prevent XML Denial of Service Attacks
...
This patch prevents entity expansion for provided XML content to guard
against XML denial of service attacks like XML bomb or Billion laughs
attack.
2020-01-28 17:29:11 +01:00
Lars Kiesow
5a68e682d9
Make Generator Optional (Atom)
...
This patch makes the field generator optional in Atom, allowing to set
an empty string to disable the element in the same way it is disabled in
RSS already:
```python
# disable generator element
fg.generator('')
```
This fixes #89
2020-01-25 18:26:52 +01:00
Lars Kiesow
224e2a1959
Update ATOM specification link
2018-08-12 21:05:56 +02:00
NoSuck
e3a3d053d4
Missing “set”
...
Thanks for taking time to make good documentation.
2018-06-03 02:46:37 -04:00
Lars Kiesow
45189d06ed
Fixed indentation of pull request #70
...
The patch mixed tabs and spaces…
2018-03-04 22:33:33 +01:00
Lars Kiesow
e2a8c43e64
Merge branch 'master' of https://github.com/arne-cl/python-feedgen
2018-03-04 22:29:14 +01: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
Arne Neumann
6aead0a7ac
added order parameter to add_entry()
...
Commit 7706033200
changed the order
in which new entries are added to a feed. This commit allows the
user to choose the order herself.
2017-10-27 12:44:37 +02:00
Stefan Bisplinghoff
7706033200
new entries are inserted to the front of the __feed_entries list
2017-03-13 13:17:22 +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
2d605c303b
Added note about *_str return type
...
Signed-off-by: Lars Kiesow <lkiesow@uos.de>
2016-09-04 19:52:55 +02:00
Lars Kiesow
df164b37db
Fixed documentation
...
Signed-off-by: Lars Kiesow <lkiesow@uos.de>
2016-08-29 01:07:42 +02: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
jonathan vanasco
4f48bc1213
allowing pluggable extensions
2016-03-08 22:46:07 -05:00
julien
5caebc220c
ref https://github.com/lkiesow/python-feedgen/issues/34
...
ref https://github.com/OnroerendErfgoed/postregistratie/issues/398
2015-12-03 16:57:30 +01:00
Lars Kiesow
abfd566c5b
Fixed #28 , Added Support for XML Declaration
...
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>
2015-10-29 00:04:16 +01: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
Vincent Driessen
626d9df6c4
Add Python 3 compatibility.
2015-01-03 22:34:33 +01:00
wltb
72b2896cf8
Add encoding argument for output creation functions, change default encoding to unicode
2015-01-03 22:14:59 +01:00
snipem
0907e993e4
Fix skipHours for Python 3
...
The xrange function isn’t available in Python 3. The range function
however is doing the same job and is working for both Python 2 and
Python 3.
2014-06-02 23:08:50 +02:00
snipem
9213c3057e
Fix domain and ttl bugs for RSS generation
...
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.
2014-06-02 22:47:45 +02:00
Lars Kiesow
a787b22b7f
Merge branch 'master' of https://github.com/snipem/python-feedgen into merge-test
2014-05-11 18:04:24 +02:00
snipem
966b7f200b
Added Python 3 compatibility
...
Exchanged iteritems() for item() and added helper function for printing
2014-05-07 21:22:55 +02:00
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
Lars Kiesow
1e9cf23f65
Merge branch 'patch-1' of https://github.com/tekromancr/python-feedgen
2014-05-05 23:42:49 +02:00
George Griffin
cdaef2dd4b
Fixes return on FeedGenerator.copyright()
2014-05-05 00:54:02 -04:00
wltb
2e7b343857
Add content namespace and semantics for RSS
2014-05-01 01:28:09 +02:00
wltb
c2197dd368
File output:
...
Added parameter for pretty print. Pass the file parameter directly to lxml.
2014-04-21 22:37:05 +02:00
Nico Gulden
262a0137e1
Fixed NameError: global name 'updated' is not defined
...
Fixes traceback
lib/python2.7/site-packages/feedgen/feed.py", line 447, in lastBuildDate
return updated( lastBuildDate )
NameError: global name 'updated' is not defined
2013-12-23 12:19:33 +01:00
Lars Kiesow
647d96881e
Fixed Issue #5 : Removed debug leftover
2013-09-23 14:28:01 +02:00
DarDar
5b613c49ab
Use datetime instead of datetime.datetime
...
There is "from datetime import datetime" in beginning of the file.
Thus the "datetime.datetime" should be checked as "datetime".
2013-07-21 21:19:39 +02:00
Lars Kiesow
4a7e7ad83c
improved error messages
2013-05-20 14:23:21 +02:00
Lars Kiesow
950e2f909d
included version in docs and setup
2013-05-16 19:30:29 +02:00
Lars Kiesow
66689be7ff
Proper initialization
2013-05-16 19:04:03 +02:00
Lars Kiesow
0aecfe2008
new release
2013-05-14 18:20:37 +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
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
bdd309fc2b
fixed docstring for sphinx
2013-05-13 15:48:20 +02:00
Lars Kiesow
9a17daad30
Fixed problems with subpackage in setup.py
2013-05-05 23:00:44 +02:00
Lars Kiesow
acf49df097
Fixed version problems
2013-05-05 22:51:22 +02:00
Lars Kiesow
9df7e9dc48
Documentation for extension system
2013-05-05 20:36:35 +02:00