Changes between Version 22 and Version 23 of TracDev/PluginDevelopment
- Timestamp:
- Sep 7, 2007, 5:48:44 PM (17 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
TracDev/PluginDevelopment
v22 v23 32 32 #!python 33 33 from trac.core import * 34 from trac.util import Markup34 from trac.util.html import html 35 35 from trac.web import IRequestHandler 36 36 from trac.web.chrome import INavigationContributor … … 43 43 return 'helloworld' 44 44 def get_navigation_items(self, req): 45 yield 'mainnav', 'helloworld', \46 Markup('<a href="%s">Hello World</a>' \47 % req.href.helloworld()) 45 yield ('mainnav', 'helloworld', 46 html.A('Hello world', href= req.href.helloworld())) 47 48 48 # IRequestHandler methods 49 49 def match_request(self, req):