Edgewall Software

Changes between Version 22 and Version 23 of TracDev/PluginDevelopment


Ignore:
Timestamp:
Sep 7, 2007, 5:48:44 PM (17 years ago)
Author:
Christopher Lenz
Comment:

s/Markup/html

Legend:

Unmodified
Added
Removed
Modified
  • TracDev/PluginDevelopment

    v22 v23  
    3232#!python
    3333from trac.core import *
    34 from trac.util import Markup
     34from trac.util.html import html
    3535from trac.web import IRequestHandler
    3636from trac.web.chrome import INavigationContributor
     
    4343        return 'helloworld'
    4444    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
    4848    # IRequestHandler methods
    4949    def match_request(self, req):