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
A standard way for different geometry libraries in Python to be
interoperable is a `__geo_interface__` for the geometry (see the
specification: https://gist.github.com/sgillies/2217756). This
includes the shapely library, geometries from QGIS, and geometries in
Esri's arcpy libraries for ArcGIS desktop and ArcGIS pro.
To make it easier to generate a georss entry a simple method which
does the conversion (of the supported geometries only) and sets the
appropriate geometry type.
This includes a custom error for the geometry being incompatible and a
custom warning for a polygon with interior holes. This is done to
store the geometries on the exception / warning if required for
debugging.
Originally the georss entry only contained a simple point
specification. Update to include:
- other geometries (line, polygon and box)
- additional properties (featuretypetag, relationshiptag, featurename)
- elevation (elev, floor)
- radius (radius)
This also includes basic type checking with a value error for the
elev, floor and radius tags.
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
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
- MediaRSS support
- New entries are now rendered first
- Python 3.6 support and testing
- Add permalink attribute to RSS guid
- Lots of tests and minor fixes
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
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
As with media:content, there can be multiple media:thumbnail elements in
an item and in multiple groups. This patch adds the ability to do this
in the same manner as with the content.
Part of #58
One item can have multiple media:content elements which may be located
in multiple media:group element to indicate that content is the same but
for the format.
This patch adds the ability to add multiple content elements and define
the group to which they go belong.
If no group is specified, all elements are located in a `default` group.
If the group is set to None, the content element is directly attached to
the item element.
Part of #58
Using `fe.media.media_content(…)` is quite redundant. iThis patch
changes the name to `fe.media.content(…)`. The same goes for the
thumbnail method.
Part of #58
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>