Removed AUTHOR defaulting to OS User /John Doe, so both a blank or undefined (None) author is possible.

Reverted templates back to checking author object, since a None object is possible. Name could be checked for blank if required
ATOM spec states an author element should be provided, so passes a blank name if not specified
Updated unit test
This commit is contained in:
Brendan Wholihan 2012-10-26 18:20:05 +01:00
commit f7a2f8ea47
7 changed files with 18 additions and 19 deletions

View file

@ -43,7 +43,7 @@ class Writer(object):
item.date.date(), item.url),
description=item.content,
categories=item.tags if hasattr(item, 'tags') else None,
author_name=getattr(item, 'author', 'John Doe'),
author_name=getattr(item, 'author', ''),
pubdate=set_date_tzinfo(item.date,
self.settings.get('TIMEZONE', None)))