Changeset 2069
- Timestamp:
- 03/01/07 01:37:56 (2 years ago)
- Files:
-
- doxygenplugin/0.11 (copied) (copied from doxygenplugin/0.10)
- doxygenplugin/0.11/doxygentrac/doxygentrac.py (modified) (6 diffs)
- doxygenplugin/0.11/setup.py (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
doxygenplugin/0.11/doxygentrac/doxygentrac.py
r1983 r2069 1 # -*- coding: utf-8 -*- 1 2 # vim: ts=4 expandtab 2 3 # 3 4 # Copyright (C) 2005 Jason Parks <jparks@jparks.net>. All rights reserved. 5 # Copyright (C) 2006-2007 Christian Boos <cboos@neuf.fr> 4 6 # 5 6 from __future__ import generators7 7 8 8 import os … … 11 11 import re 12 12 import mimetypes 13 14 from genshi.builder import tag 13 15 14 16 from trac.config import Option … … 18 20 from trac.web.chrome import INavigationContributor, ITemplateProvider, \ 19 21 add_stylesheet 20 from trac. Searchimport ISearchSource21 from trac.wiki import WikiSystem, IWikiSyntaxProvider22 from trac.search.api import ISearchSource 23 from trac.wiki.api import WikiSystem, IWikiSyntaxProvider 22 24 from trac.wiki.model import WikiPage 23 25 from trac.wiki.formatter import wiki_to_html 24 from trac.util.html import html25 26 26 27 def compare_rank(x, y): … … 33 34 class DoxygenPlugin(Component): 34 35 implements(IPermissionRequestor, INavigationContributor, IRequestHandler, 35 ITemplateProvider, ISearchSource, IWikiSyntaxProvider)36 ITemplateProvider, ISearchSource, IWikiSyntaxProvider) 36 37 37 38 base_path = Option('doxygen', 'path', '/var/lib/trac/doxygen', … … 87 88 if req.perm.has_permission('DOXYGEN_VIEW'): 88 89 # Return mainnav buttons. 89 yield 'mainnav', 'doxygen', html.a(self.title,90 href=req.href.doxygen())90 yield ('mainnav', 'doxygen', 91 tag.a(self.title, href=req.href.doxygen())) 91 92 92 93 # IRequestHandler methods … … 224 225 action, path, link = self._doxygen_lookup(segments) 225 226 if action == 'index': 226 return html.a(label, title=self.title,227 href=formatter.href.doxygen())227 return tag.a(label, title=self.title, 228 href=formatter.href.doxygen()) 228 229 if action == 'redirect' and path: 229 return html.a(label, title="Search result for "+params,230 href=formatter.href.doxygen(link,path=path))230 return tag.a(label, title="Search result for "+params, 231 href=formatter.href.doxygen(link,path=path)) 231 232 if action == 'search': 232 return html.a(label, title=params, class_='missing',233 href=formatter.href.doxygen())233 return tag.a(label, title=params, class_='missing', 234 href=formatter.href.doxygen()) 234 235 else: 235 return html.a(label, title=params,236 href=formatter.href.doxygen(link, path=path))236 return tag.a(label, title=params, 237 href=formatter.href.doxygen(link, path=path)) 237 238 yield ('doxygen', doxygen_link) 238 239 doxygenplugin/0.11/setup.py
r1209 r2069 8 8 description='Doxygen plugin for Trac', 9 9 keywords='trac doxygen', 10 version='0. 4',10 version='0.11.1', 11 11 url='http://trac-hacks.org/wiki/DoxygenPlugin', 12 12 license = """Copyright (C) 2005 Jason Parks <jparks@jparks.net> … … 40 40 author='Jason Parks, Radek BartoÅ', 41 41 author_email='blackhex@post.cz', 42 maintainer = "Christian Boos", 43 maintainer_email = "cboos@neuf.fr", 42 44 long_description=""" 43 45 """,
