Ticket #2033 (new enhancement)

Opened 1 year ago

Last modified 10 months ago

Let SubWiki Create Nested Unordered-Lists

Reported by: peter.koerner@tmp.de Assigned to: coderanger
Priority: high Component: HierWikiPlugin
Severity: normal Keywords:
Cc: peter.koerner@tmp.de Trac Release: 0.10

Description

Hi I use SubWiki? for generating Indexes of my Documentation. I didn't like the way all pages were printeted in a plain list so I searched for some kind of nested index. I didn't find anything like that for the Trac-Wiki ans so I bite the bullet and wrote a recursing function that iterates over the pages-tree and generates a nested view of the pages' subsites. Thiw is the first time I touched python, so please be patient with my coding style ;) Unfortunately I changed the indenting of the original file to one tab per indent, so it's hard to get a good diff of it. I attached the whole subwiki.py so maybe someone could have a look at it.

Attachments

subwiki.py (3.0 kB) - added by peter.koerner@tmp.de on 09/11/07 02:01:00.
Let Subwiki Create Nested Unordered Lists
hierwikiplugin.diff (4.6 kB) - added by anonymous on 11/24/07 22:12:24.

Change History

09/11/07 02:01:00 changed by peter.koerner@tmp.de

  • attachment subwiki.py added.

Let Subwiki Create Nested Unordered Lists

11/12/07 03:15:32 changed by jeff@jrm.cc

  • priority changed from normal to high.

This patch should definitely be applied -- it's well worth it, thanks!

I'm going to add a link to this buy on the HierWiki? plugin page since this is the way the list *should* be generated.

11/24/07 22:12:24 changed by anonymous

  • attachment hierwikiplugin.diff added.

11/24/07 22:20:30 changed by anonymous

I have enhanced further to produce different output style with 3rd paramter. The attachment:hierwikiplugin.diff contains the change so it should now be easier to merge. But I only did 0.10 version.

Here is the meaning of the style parameter:

0
ParentPage/SubPage? Page Name
1
SubPage? Page Name
2
Page Name?
3
ParentPage/SubPage?
4
SubPage?

Add/Change #2033 (Let SubWiki Create Nested Unordered-Lists)




Change Properties
Action