Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

[1.1.X] Fixed #6039 -- Modified Atom example to be standard compliant…

…. Thanks to ion.morega@gmail.com for the report, and arien for the patch.

Backport of r13179 from trunk.

git-svn-id: http://code.djangoproject.com/svn/django/branches/releases/1.1.X@13181 bcc190cf-cafb-0310-a4f2-bffc1f526a37
  • Loading branch information...
commit e10f546b2190661d240f9daa6aca69f721696079 1 parent c772e39
Russell Keith-Magee authored May 09, 2010

Showing 1 changed file with 5 additions and 1 deletion. Show diff stats Hide diff stats

  1. 6  docs/ref/contrib/syndication.txt
6  docs/ref/contrib/syndication.txt
@@ -906,13 +906,17 @@ They share this interface:
906 906
 For example, to create an Atom 1.0 feed and print it to standard output::
907 907
 
908 908
     >>> from django.utils import feedgenerator
  909
+    >>> from datetime import datetime
909 910
     >>> f = feedgenerator.Atom1Feed(
910 911
     ...     title=u"My Weblog",
911 912
     ...     link=u"http://www.example.com/",
912 913
     ...     description=u"In which I write about what I ate today.",
913  
-    ...     language=u"en")
  914
+    ...     language=u"en",
  915
+    ...     author_name=u"Myself",
  916
+    ...     feed_url=u"http://example.com/atom.xml")
914 917
     >>> f.add_item(title=u"Hot dog today",
915 918
     ...     link=u"http://www.example.com/entries/1/",
  919
+    ...     pubdate=datetime.now(),
916 920
     ...     description=u"<p>Today I had a Vienna Beef hot dog. It was pink, plump and perfect.</p>")
917 921
     >>> print f.writeString('UTF-8')
918 922
     <?xml version="1.0" encoding="UTF-8"?>

0 notes on commit e10f546

Please sign in to comment.
Something went wrong with that request. Please try again.