Django

Code

Show
Ignore:
Timestamp:
07/12/07 00:29:32 (1 year ago)
Author:
adrian
Message:

Improved syndication feed framework to use RequestSite? if the sites framework is not installed -- i.e., the sites framework is no longer required to use the syndication feed framework. This is backwards incompatible if anybody has subclassed Feed and overridden init(), because the second parameter is now expected to be an HttpRequest object instead of request.path

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • django/trunk/django/contrib/syndication/views.py

    r4265 r5654  
    1717 
    1818    try: 
    19         feedgen = f(slug, request.path).get_feed(param) 
     19        feedgen = f(slug, request).get_feed(param) 
    2020    except feeds.FeedDoesNotExist: 
    2121        raise Http404, "Invalid feed parameters. Slug %r is valid, but other parameters, or lack thereof, are not." % slug