Changes between Version 10 and Version 11 of EggCookingTutorial/AdvancedEggCooking2


Ignore:
Timestamp:
Jan 25, 2006, 1:06:07 AM (18 years ago)
Author:
villaume@…
Comment:

necessary for 0.93

Legend:

Unmodified
Added
Removed
Modified
  • EggCookingTutorial/AdvancedEggCooking2

    v10 v11  
    104104from trac.web.chrome import INavigationContributor, ITemplateProvider, add_stylesheet
    105105from trac.web.main import IRequestHandler
    106 from trac.util import escape
     106from trac.util import escape, Markup
    107107
    108108class UserbaseModule(Component):
     
    114114               
    115115    def get_navigation_items(self, req):
    116         yield 'mainnav', 'helloworld', '<a href="%s">Hello</a>' \
    117                                        % escape(self.env.href.helloworld())
     116        yield 'mainnav', 'helloworld', Markup('<a href="%s">Hello</a>',
     117                                         escape(self.env.href.helloworld())
    118118       
    119119    # IRequestHandler methods
     
    183183
    184184
     185