Django

Code

Changeset 6873

Show
Ignore:
Timestamp:
12/03/07 23:58:43 (9 months ago)
Author:
adrian
Message:

Edited docs/syndication_feeds.txt changes from [6741]

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • django/trunk/docs/syndication_feeds.txt

    r6806 r6873  
    235235      ``['0613']``. For a request to ``/rss/beats/0613/foo/bar/``, bits would 
    236236      be ``['0613', 'foo', 'bar']``. 
     237 
    237238    * ``get_object()`` is responsible for retrieving the given beat, from the 
    238239      given ``bits``. In this case, it uses the Django database API to retrieve 
     
    244245      subclass of ``ObjectDoesNotExist``. Raising ``ObjectDoesNotExist`` in 
    245246      ``get_object()`` tells Django to produce a 404 error for that request. 
     247 
    246248    * To generate the feed's ``<title>``, ``<link>`` and ``<description>``, 
    247249      Django uses the ``title()``, ``link()`` and ``description()`` methods. In 
     
    259261      might be ``None``, which can occur when the URL isn't fully specified. In 
    260262      some cases, you might want to do something else in this case, which would 
    261       mean you'd need to check for ``obj`` existing in other methods as well 
    262       (the ``link()`` method is called very early in the feed generation 
    263       process, so is a good place to bail out early). 
     263      mean you'd need to check for ``obj`` existing in other methods as well. 
     264      (The ``link()`` method is called very early in the feed generation 
     265      process, so it's a good place to bail out early.) 
    264266 
    265267    * Finally, note that ``items()`` in this example also takes the ``obj``