Mike Orr avatar Mike Orr committed c207cd1

Disable 'generator' and 'source' properties; they seem to be defined in the wrong place.

Comments (0)

Files changed (2)

 -------------------------
 * webhelpers.constants:
   - Fix spelling of Massachusetts.
+* webhelpers.feedgenerator:
+  - Disable 'generator' and 'source' properties; they seem to be defined
+    in the wrong place.
 * 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"guid", item['unique_id'])
             if item['ttl'] is not None:
                 handler.addQuickElement(u"ttl", item['ttl'])
-            if item['generator'] is not None:
-                handler.addQuickElement(u"generator", item['generator'])
-            if item['source'] is not None:
-                handler.addQuickElement(u"source", item['source'])
+            # XXX DISABLED: these are defined at the feed level.
+            #if item['generator'] is not None:
+            #    handler.addQuickElement(u"generator", item['generator'])
+            #if item['source'] is not None:
+            #    handler.addQuickElement(u"source", item['source'])
 
             # Enclosure.
             if item['enclosure'] 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.