Changeset 4133

Show
Ignore:
Timestamp:
08/12/08 10:54:11 (3 months ago)
Author:
oneirist
Message:

Updated so the "Detailed RSS Feed" no longer incorrectly shows up on pages where
it shouldn't, such as "All Reports".

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • detailedrssfeedplugin/ReportToDetailedRSS/ReportToDetailedRSS.py

    r4114 r4133  
    3434        """ 
    3535        rmodule = ReportModule(self.env) 
    36         if rmodule.match_request(req): #report's match request. if it's gonna be true then we'll stick in our translator 
     36        #report's match request. if it's gonna be true then we'll stick in our translator, 
     37        #but only if there's a report id (i.e. it's actually a report page) 
     38        if rmodule.match_request(req) and 'id' in req.args and req.args.get('action', 'view') == 'view': 
    3739            add_link(req, 'alternate', '?format=rss&detailed=true' , _('Detailed RSS Feed'), 
    3840                'application/rss+xml', 'rss')