Commits

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: