Mike Orr avatar Mike Orr committed 272194b

Re-add Atom1 'published' property (based on changeset 1f234b039b58).

Comments (0)

Files changed (2)

 * webhelpers.feedgenerator:
   - Sync with Django rev 11910. This adds GeoRSS and makes the API more
     extensible, as well as fixing a few bugs.
-    It loses the 'published', 'generator', and 'source' properties which were
-    added locally. However, the 'generator' and 'source' patch was buggy
-    anyway.
+    (Re-added the Atom1 'published' property.)
+    (The 'generator' and 'source' properties were lost, but they weren't
+    working correctly anyway.)
 * webhelpers.html:
   - New ``HTML.cdata()`` method for producing "<!![CDATA[ ... ]]>" sections.
   - The basic tag builders (``HTML.a()`` and ``HTML.tag("a")``) now have a

webhelpers/feedgenerator.py

         handler.addQuickElement(u"link", u"", {u"href": item['link'], u"rel": u"alternate"})
         if item['pubdate'] is not None:
             handler.addQuickElement(u"updated", rfc3339_date(item['pubdate']).decode('utf-8'))
+            handler.addQuickElement(u"published", rfc3339_date(item['pubdate']).decode('utf-8'))
 
         # Author information.
         if item['author_name'] is not None:
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.