Commits

dan mackinlay committed b1659d7

don't explode when told to index undated entries

Comments (0)

Files changed (2)

   - make sorting by date optional
   - make displaying date optional
   - support microformats for date display
+  - rather than ignoring undated articles, include them at the bottom of the list.
   
 - write rss at the `html-collect-pages` event

feed/sphinxcontrib/feed/__init__.py

         includefiles = node['includefiles']
         
         decorated_entries = [
-          (feed_pub_dates.get(doc,{}), title, doc)
-          for title, doc in entries]
+          (feed_pub_dates.get(doc), title, doc)
+          for title, doc in entries
+          if doc in feed_pub_dates]
         decorated_entries.sort(reverse=True)
         
         latest_list = nodes.bullet_list('')