Ticket #8253: r8319_atom.patch
File r8319_atom.patch, 1.1 KB (added by , 16 years ago) |
---|
-
django/utils/feedgenerator.py
266 266 self.write_items(handler) 267 267 handler.endElement(u"feed") 268 268 269 def root_ element_attributes(self):269 def root_attributes(self): 270 270 if self.feed['language'] is not None: 271 271 return {u"xmlns": self.ns, u"xml:lang": self.feed['language']} 272 272 else: -
tests/regressiontests/syndication/tests.py
36 36 37 37 feed = doc.firstChild 38 38 self.assertEqual(feed.nodeName, 'feed') 39 self.assertEqual(feed.getAttribute('xmlns'), 'http://www.w3.org/2005/Atom') 39 40 self.assertChildNodes(feed, ['title', 'link', 'id', 'updated', 'entry']) 40 41 41 42 entries = feed.getElementsByTagName('entry')