Compare commits
No commits in common. "master" and "bandit" have entirely different histories.
3 changed files with 13 additions and 6 deletions
|
@ -121,9 +121,14 @@ class FeedGenerator(object):
|
||||||
if not a.get('name'):
|
if not a.get('name'):
|
||||||
continue
|
continue
|
||||||
author = xml_elem('author', feed)
|
author = xml_elem('author', feed)
|
||||||
for k in a.keys():
|
name = xml_elem('name', author)
|
||||||
e = xml_elem(k, author)
|
name.text = a.get('name')
|
||||||
e.text = str(a.get(k))
|
if a.get('email'):
|
||||||
|
email = xml_elem('email', author)
|
||||||
|
email.text = a.get('email')
|
||||||
|
if a.get('uri'):
|
||||||
|
uri = xml_elem('uri', author)
|
||||||
|
uri.text = a.get('uri')
|
||||||
|
|
||||||
for l in self.__atom_link or []:
|
for l in self.__atom_link or []:
|
||||||
link = xml_elem('link', feed, href=l['href'])
|
link = xml_elem('link', feed, href=l['href'])
|
||||||
|
@ -525,7 +530,9 @@ class FeedGenerator(object):
|
||||||
if author is not None:
|
if author is not None:
|
||||||
if replace or self.__atom_author is None:
|
if replace or self.__atom_author is None:
|
||||||
self.__atom_author = []
|
self.__atom_author = []
|
||||||
self.__atom_author += [author]
|
self.__atom_author += ensure_format(author,
|
||||||
|
set(['name', 'email', 'uri']),
|
||||||
|
set(['name']))
|
||||||
self.__rss_author = []
|
self.__rss_author = []
|
||||||
for a in self.__atom_author:
|
for a in self.__atom_author:
|
||||||
if a.get('email'):
|
if a.get('email'):
|
||||||
|
|
|
@ -10,7 +10,7 @@
|
||||||
'''
|
'''
|
||||||
|
|
||||||
'Version of python-feedgen represented as tuple'
|
'Version of python-feedgen represented as tuple'
|
||||||
version = (0, 9, 0)
|
version = (0, 8, 0)
|
||||||
|
|
||||||
|
|
||||||
'Version of python-feedgen represented as string'
|
'Version of python-feedgen represented as string'
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
%global pypi_name feedgen
|
%global pypi_name feedgen
|
||||||
|
|
||||||
Name: python-%{pypi_name}
|
Name: python-%{pypi_name}
|
||||||
Version: 0.9.0
|
Version: 0.8.0
|
||||||
Release: 1%{?dist}
|
Release: 1%{?dist}
|
||||||
Summary: Feed Generator (ATOM, RSS, Podcasts)
|
Summary: Feed Generator (ATOM, RSS, Podcasts)
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue