#15504: Incorrect docs for args to SyndicationFeed.add_item
------------------------------+---------------------------------------------
 Reporter:  slinkp@…          |          Owner:  nobody    
   Status:  new               |      Milestone:            
Component:  Uncategorized     |        Version:  1.2       
 Keywords:                    |   Triage Stage:  Unreviewed
Has patch:  0                 |  
------------------------------+---------------------------------------------
 The docs at http://docs.djangoproject.com/en/1.2/ref/contrib/syndication
 /#syndicationfeed-classes
 say that SyndicationFeed.add_item takes only keyword args.
 In fact as per
 http://docs.djangoproject.com/en/dev/ref/utils/#syndicationfeed there are
 three positional args followed by keyword args:

 {{{
     def add_item(self, title, link, description, author_email=None,
         author_name=None, author_link=None, pubdate=None, comments=None,
         unique_id=None, enclosure=None, categories=(),
 item_copyright=None,
         ttl=None, **kwargs):
 }}}

 If you try to pass those first three as kwargs it blows up with a
 TypeError.

-- 
Ticket URL: <http://code.djangoproject.com/ticket/15504>
Django <http://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.

-- 
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.

Reply via email to