Ticket #16150: syndication_docs.diff

File syndication_docs.diff, 1.2 KB (added by Stephen Burrows, 13 years ago)
  • docs/ref/contrib/syndication.txt

    diff --git a/docs/ref/contrib/syndication.txt b/docs/ref/contrib/syndication.txt
    index 9a0aa9b..b1f2378 100644
    a b This example illustrates all possible attributes and methods for a  
    388388
    389389        def link(self, obj):
    390390            """
     391            # Takes the object returned by get_object() and returns the link
     392            # to the HTML version of the feed as a normal Python string.
     393            """
     394
     395        def link(self):
     396            """
     397            Returns the link to the HTML version of the feed as a normal Python
     398            string.
     399            """
     400
     401        link = '/foo/bar/' # Hard-coded link.
     402
     403        # FEED_URL -- One of the following three is optional. The framework
     404        # looks for them in this order.
     405
     406        def feed_url(self, obj):
     407            """
    391408            # Takes the object returned by get_object() and returns the feed's
    392409            # link as a normal Python string.
    393410            """
    394411
    395         def link(self):
     412        def feed_url(self):
    396413            """
    397414            Returns the feed's link as a normal Python string.
    398415            """
Back to Top