Author: russellm Date: 2010-05-09 02:46:50 -0500 (Sun, 09 May 2010) New Revision: 13181
Modified: django/branches/releases/1.1.X/docs/ref/contrib/syndication.txt Log: [1.1.X] Fixed #6039 -- Modified Atom example to be standard compliant. Thanks to [email protected] for the report, and arien for the patch. Backport of r13179 from trunk. Modified: django/branches/releases/1.1.X/docs/ref/contrib/syndication.txt =================================================================== --- django/branches/releases/1.1.X/docs/ref/contrib/syndication.txt 2010-05-09 07:45:05 UTC (rev 13180) +++ django/branches/releases/1.1.X/docs/ref/contrib/syndication.txt 2010-05-09 07:46:50 UTC (rev 13181) @@ -906,13 +906,17 @@ For example, to create an Atom 1.0 feed and print it to standard output:: >>> from django.utils import feedgenerator + >>> from datetime import datetime >>> f = feedgenerator.Atom1Feed( ... title=u"My Weblog", ... link=u"http://www.example.com/", ... description=u"In which I write about what I ate today.", - ... language=u"en") + ... language=u"en", + ... author_name=u"Myself", + ... feed_url=u"http://example.com/atom.xml") >>> f.add_item(title=u"Hot dog today", ... link=u"http://www.example.com/entries/1/", + ... pubdate=datetime.now(), ... description=u"<p>Today I had a Vienna Beef hot dog. It was pink, plump and perfect.</p>") >>> print f.writeString('UTF-8') <?xml version="1.0" encoding="UTF-8"?> -- You received this message because you are subscribed to the Google Groups "Django updates" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/django-updates?hl=en.
