changeset 71:94298e137131

fix rss bug
author Jeff Hammel <jhammel@mozilla.com>
date Wed, 08 Aug 2012 21:07:36 -0700
parents 262fb90a54b4
children 32d7286adfa5
files decoupage/formats.py setup.py
diffstat 2 files changed, 4 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/decoupage/formats.py	Sat Aug 04 15:55:52 2012 -0700
+++ b/decoupage/formats.py	Wed Aug 08 21:07:36 2012 -0700
@@ -43,9 +43,10 @@
                                 guid=PyRSS2Gen.Guid(link(request, item['path'])))
               for item in data['files'] ]
     path_link = link(request, data['path'])
-    rss = PyRSS2Gen.RSS2(title=data['title'] or data['path'],
+    description = data.get('title') or data['path']
+    rss = PyRSS2Gen.RSS2(title=description,
                          link=path_link,
-                         description=data['title'] or data['path'],
+                         description=description,
                          lastBuildDate = datetime.datetime.now(),
                          items=items
                          )
--- a/setup.py	Sat Aug 04 15:55:52 2012 -0700
+++ b/setup.py	Wed Aug 08 21:07:36 2012 -0700
@@ -6,7 +6,7 @@
 except IOError:
     description = ''
 
-version = '0.11'
+version = '0.11.1'
 
 setup(name='decoupage',
       version=version,