Commits

Tim Freund committed 684506c

Had Feed overloaded as a term

Comments (0)

Files changed (3)

ironblogger/models.py

         if column.default is not None:
             setattr(instance, name, column.default.execute())
 
-class Feed(object):
+class FeedVO(object):
     def __init__(self, feed_url=None, html_url=None, 
                  entries=[], update_time=None):
         self.feed_url = feed_url

ironblogger/templates/atom.pt

     <title></title>
     <link href="${ feed.feed_url }" rel="self" />
     <link href="${ feed.html_url }"/>
-    <updated>${ feed.updated_at }</updated>
+    <updated>${ feed.update_time }</updated>
     <id>${ feed.feed_url }/</id>
     <entry tal:repeat="entry feed.entries">
       <title type="html">${ entry.title }</title>

ironblogger/views.py

 def iron_blogger_atom(context, request):
     ib = request.environ['iron_blogger']
 
-    feed = Feed(request.url,
-                request.url.replace("/atom.xml", ""),
-                [])
+    feed = FeedVO(request.url,
+                  request.url.replace("/atom.xml", ""),
+                  [])
     return {'feed': feed}
 
 @require_iron_blogger
 def iron_blogger_posts_atom(context, request):
     ib = request.environ['iron_blogger']
 
-    feed = Feed(request.url,
-                request.url.replace("/atom.xml", ""),
-                ib.recent_posts())
+    feed = FeedVO(request.url,
+                  request.url.replace("/atom.xml", ""),
+                  ib.recent_posts())
     return {'feed': feed}
 
 @require_iron_blogger