mirror of https://github.com/django/django.git
Fixed #4323 -- Added the ability to display author names without email
addresses to RSS 2.0 feeds. git-svn-id: http://code.djangoproject.com/svn/django/trunk@5357 bcc190cf-cafb-0310-a4f2-bffc1f526a37
This commit is contained in:
parent
3c948d45d2
commit
12771614db
1
AUTHORS
1
AUTHORS
|
@ -230,6 +230,7 @@ answer newbie questions, and generally made Django that much better:
|
||||||
viestards.lists@gmail.com
|
viestards.lists@gmail.com
|
||||||
Milton Waddams
|
Milton Waddams
|
||||||
wam-djangobug@wamber.net
|
wam-djangobug@wamber.net
|
||||||
|
wangchun <yaohua2000@gmail.com>
|
||||||
Dan Watson <http://theidioteque.net/>
|
Dan Watson <http://theidioteque.net/>
|
||||||
Chris Wesseling <Chris.Wesseling@cwi.nl>
|
Chris Wesseling <Chris.Wesseling@cwi.nl>
|
||||||
charly.wilhelm@gmail.com
|
charly.wilhelm@gmail.com
|
||||||
|
|
|
@ -168,6 +168,8 @@ class Rss201rev2Feed(RssFeed):
|
||||||
(item['author_email'], item['author_name']))
|
(item['author_email'], item['author_name']))
|
||||||
elif item["author_email"]:
|
elif item["author_email"]:
|
||||||
handler.addQuickElement(u"author", item["author_email"])
|
handler.addQuickElement(u"author", item["author_email"])
|
||||||
|
elif item["author_name"]:
|
||||||
|
handler.addQuickElement(u"dc:creator", item["author_name"], {"xmlns:dc": u"http://purl.org/dc/elements/1.1/"})
|
||||||
|
|
||||||
if item['pubdate'] is not None:
|
if item['pubdate'] is not None:
|
||||||
handler.addQuickElement(u"pubDate", rfc2822_date(item['pubdate']).decode('ascii'))
|
handler.addQuickElement(u"pubDate", rfc2822_date(item['pubdate']).decode('ascii'))
|
||||||
|
|
Loading…
Reference in New Issue