Create a Author class which has a url property

This commit is contained in:
Kyle Fuller 2011-12-22 16:22:34 +00:00
commit ff9c786149
6 changed files with 28 additions and 30 deletions

View file

@ -195,7 +195,7 @@ class ArticlesGenerator(Generator):
author_template = self.get_template('author')
for aut, articles in self.authors:
dates = [article for article in self.dates if article in articles]
write('author/%s.html' % aut, author_template, self.context,
write(aut.url, author_template, self.context,
author=aut, articles=articles, dates=dates,
paginated={'articles': articles, 'dates': dates},
page_name='author/%s' % aut)