Ticket #16150: 16150_v2.diff

File 16150_v2.diff, 1.4 KB (added by Christopher Medrela, 12 years ago)
  • docs/ref/contrib/syndication.txt

    diff --git a/docs/ref/contrib/syndication.txt b/docs/ref/contrib/syndication.txt
    index e66bb46..a0f1d7c 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 = '/blog/' # 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            """
    399416
    400         link = '/foo/bar/' # Hard-coded link.
     417        feed_url = '/blog/rss/' # Hard-coded link.
    401418
    402419        # GUID -- One of the following three is optional. The framework looks
    403420        # for them in this order. This property is only used for Atom feeds
Back to Top