From f6e7a3aee53bcd733df2bc3effe1b2ebb97a5342 Mon Sep 17 00:00:00 2001 From: Russell Keith-Magee Date: Sun, 9 May 2010 07:44:39 +0000 Subject: [PATCH] Fixed #6039 -- Modified Atom example to be standard compliant. Thanks to ion.morega@gmail.com for the report, and arien for the patch. git-svn-id: http://code.djangoproject.com/svn/django/trunk@13179 bcc190cf-cafb-0310-a4f2-bffc1f526a37 --- docs/ref/contrib/syndication.txt | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/docs/ref/contrib/syndication.txt b/docs/ref/contrib/syndication.txt index 5b251ab8c4..7b47ef8a4e 100644 --- a/docs/ref/contrib/syndication.txt +++ b/docs/ref/contrib/syndication.txt @@ -869,13 +869,17 @@ They share this interface: 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"

Today I had a Vienna Beef hot dog. It was pink, plump and perfect.

") >>> print f.writeString('UTF-8')