Edgewall Software

Changes between Version 16 and Version 17 of TracDev/PluginDevelopment


Ignore:
Timestamp:
Dec 14, 2006, 4:43:39 PM (17 years ago)
Author:
Christian Boos
Comment:

Fixed another misleading part of the example: one should use req.href, not self.env.href. The latter will make use of the base_url of the project, and will not necessarily share the same base url as the one used for the request.

Legend:

Unmodified
Added
Removed
Modified
  • TracDev/PluginDevelopment

    v16 v17  
    4242        yield 'mainnav', 'helloworld', \
    4343               Markup('<a href="%s">Hello World</a>' \
    44                       % self.env.href.helloworld())
     44                      % req.href.helloworld())
    4545    # IRequestHandler methods
    4646    def match_request(self, req):