Changeset 4415
- Timestamp:
- 10/07/08 04:57:50 (3 months ago)
- Files:
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
tracwikinegotiatorplugin/0.10/wikinegotiator/macros.py
r4414 r4415 3 3 from trac import __version__ as version 4 4 from trac.core import * 5 from trac.config import Option, ListOption , BoolOption5 from trac.config import Option, ListOption 6 6 from trac.util import sorted 7 7 from trac.wiki import WikiSystem, html 8 8 from trac.wiki.macros import WikiMacroBase 9 9 from trac.wiki.model import WikiPage 10 11 10 12 11 ## alternative TitleIndex macro … … 195 194 """ 196 195 197 _override_toc_macro = BoolOption('wiki-negotiator',198 'override_toc_macro',199 'enabled',200 doc="""Expose NTOC macro as TOC macro.""")201 202 196 def get_page_text(self, formatter, page_resource): 203 197 """Return a tuple of `(text, exists)` for the given page (resource). … … 232 226 return (page.text, page.exists) 233 227 234 if NTOCMacro._override_toc_macro:235 # alter 'TOC' macro by NTOCMacro236 class TOCMacro(NTOCMacro):237 pass238 239 228 except: 240 229 # TOCMacro load fail
