Mercurial > hg > decoupage
diff decoupage/formats.py @ 70:262fb90a54b4
make template loading lenient and other fixes; bump version
author | Jeff Hammel <jhammel@mozilla.com> |
---|---|
date | Sat, 04 Aug 2012 15:55:52 -0700 |
parents | cf18ea0313f9 |
children | 94298e137131 |
line wrap: on
line diff
--- a/decoupage/formats.py Fri Aug 03 23:48:25 2012 -0700 +++ b/decoupage/formats.py Sat Aug 04 15:55:52 2012 -0700 @@ -27,7 +27,7 @@ f['modified'] = f['modified'].ctime() return 'application/json', json.dumps(data['files']) - + class RSS(object): """RSS for indices""" @@ -38,7 +38,7 @@ def __call__(self, request, data): items = [ PyRSS2Gen.RSSItem(title=item['name'], - description=item['description'] or item['name'], + description=item['description'] or item.get('title') or item['name'], pubDate=item['modified'], guid=PyRSS2Gen.Guid(link(request, item['path']))) for item in data['files'] ]