Changeset 233

Show
Ignore:
Timestamp:
12/28/05 11:30:57 (3 years ago)
Author:
jparks
Message:

DoxygenPlugin:

Fix the match_request() to only handle html files. It will now return False if it doesn't match anything.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • doxygenplugin/0.9/doxygentrac/doxygentrac.py

    r232 r233  
    4040            req.args['path'] = ''.join([self.config.get('doxygen', 'path'), '/main.html']) 
    4141            return True 
    42         elif req.path_info != '/': 
     42        elif re.match(r'''^/.*[.]html$''', req.path_info): 
     43            self.log.debug("path = %s" % (req.path_info)) 
    4344            path = ''.join([self.config.get('doxygen', 'path'), req.path_info]) 
    4445            req.args['path'] = path 
    4546            return os.path.exists(path) 
     47         
     48        return False 
    4649 
    4750    def process_request(self, req): 
     
    5457        from pkg_resources import resource_filename 
    5558        return [resource_filename(__name__, 'templates')] 
    56      
     59 
    5760    # ISearchProvider methods 
    5861