Changeset 3059 for trac/trunk/wiki-macros/TracNav.py
- Timestamp:
- 11/24/05 14:59:34 (7 years ago)
- File:
-
- 1 edited
-
trac/trunk/wiki-macros/TracNav.py (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trac/trunk/wiki-macros/TracNav.py
r3058 r3059 183 183 preview = hdf.getValue('args.preview', "") 184 184 curpage = hdf.getValue('wiki.page_name', "") 185 name = args 186 if not name: 187 name = 'TOC' 185 name = args or 'TOC' 188 186 189 187 toc = parse_toc(get_toc(hdf, env, curpage, name), env) … … 242 240 html += '%s<ul>\n' % indentation(col) 243 241 col += 1 244 html += display( env,curpage, toc, 0, col)242 html += display(curpage, toc, 0, col) 245 243 col -= 1 246 244 html += '%s</ul>\n' % indentation(col) … … 249 247 return html 250 248 251 def display( env,curpage, toc, depth, col):249 def display(curpage, toc, depth, col): 252 250 html = '' 253 251 for name, title, sub in toc: … … 272 270 html += '%s</li>\n' % indentation(col) 273 271 if len(sub) > 0: 274 html += display( env,curpage, sub, depth + 1, col)272 html += display(curpage, sub, depth + 1, col) 275 273 return html 276 274
Note: See TracChangeset
for help on using the changeset viewer.
