Mercurial > hg > decoupage
comparison decoupage/formats.py @ 71:94298e137131
fix rss bug
author | Jeff Hammel <jhammel@mozilla.com> |
---|---|
date | Wed, 08 Aug 2012 21:07:36 -0700 |
parents | 262fb90a54b4 |
children | cc54fa8065c5 |
comparison
equal
deleted
inserted
replaced
70:262fb90a54b4 | 71:94298e137131 |
---|---|
41 description=item['description'] or item.get('title') or item['name'], | 41 description=item['description'] or item.get('title') or item['name'], |
42 pubDate=item['modified'], | 42 pubDate=item['modified'], |
43 guid=PyRSS2Gen.Guid(link(request, item['path']))) | 43 guid=PyRSS2Gen.Guid(link(request, item['path']))) |
44 for item in data['files'] ] | 44 for item in data['files'] ] |
45 path_link = link(request, data['path']) | 45 path_link = link(request, data['path']) |
46 rss = PyRSS2Gen.RSS2(title=data['title'] or data['path'], | 46 description = data.get('title') or data['path'] |
47 rss = PyRSS2Gen.RSS2(title=description, | |
47 link=path_link, | 48 link=path_link, |
48 description=data['title'] or data['path'], | 49 description=description, |
49 lastBuildDate = datetime.datetime.now(), | 50 lastBuildDate = datetime.datetime.now(), |
50 items=items | 51 items=items |
51 ) | 52 ) |
52 return 'application/rss+xml', rss.to_xml() | 53 return 'application/rss+xml', rss.to_xml() |