Changes between Version 15 and Version 16 of EggCookingTutorial/BasicEggCooking
- Timestamp:
- Jan 25, 2006, 1:02:04 AM (18 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
EggCookingTutorial/BasicEggCooking
v15 v16 11 11 First you need ''setuptools''. For instructions and files see [http://peak.telecommunity.com/DevCenter/EasyInstall#installing-easy-install EasyInstall] page. 12 12 13 You also need Trac 0.9. Download it from the [trac:TracDownload#LatestDevelopmentRelease0.9beta2TracDownload] page.13 You also need '''Trac 0.93'''. Download it from the [http://projects.edgewall.com/trac/wiki/TracDownload TracDownload] page. 14 14 15 15 == Directories == … … 36 36 from trac.web.chrome import INavigationContributor 37 37 from trac.web.main import IRequestHandler 38 from trac.util import escape 38 from trac.util import escape, Markup 39 39 40 40 class UserbaseModule(Component): … … 46 46 47 47 def get_navigation_items(self, req): 48 yield 'mainnav', 'helloworld', '<a href="%s">Hello</a>' \ 49 % escape(self.env.href.helloworld()) 48 yield 'mainnav', 'helloworld', Markup('<a href="%s">Hello</a>', self.env.href.helloworld()) 50 49 51 50 # IRequestHandler methods