#4 Special wikinames

closed-rejected
None
5
2005-10-23
2001-04-17
lucas bruand
No

hi,

There is a MoinMoin that was recently installed on the
wxPython server (wxPython.org) and we have put the
wxPython documentation on the MoinMoin for easier
development; But I was disatisfied with the fact that
we couldn't have a decent Word index with our classname
writing convention:

Classes in wxPython have the form:
wxEvtHandler.

So even if you put our pages for classes this way:
["wxEvtHandler"], there is still of problem of having
of word splitting in the WordInder:

wxEvtHandler will be referenced in

Evt and Handler but not in EvtHandler or wxEvtHandler.

My solution was to have exceptions to the normal way
Wikinames are processed.

Those exceptions called NonStdWikiNames come in four
methods to reflect all the uses you can have of a
WikiNames:

- gettitle(actualpagename) returns a title according
to the pagename
- getlink(actualpagename) returns an HTML link
- getwords(actualpagename) returns the words that are
to be build in the WordIndex
- recognize(actualpagename) tell if the pagename is a
WikiName of this kind. ( so that gettitle getlink or
getwords will be applied...)

I suggest you have a look in the moin_config.py file
where there is an example:
WikiNames beginning with:
class
classwx
keyword
method
function
have a new completely new behaviour.

Bye. don't hesitate to contact me at
lbruand@users.sourceforge.net

Lucas

Discussion

  • lucas bruand
    lucas bruand
    2001-04-17

    Patch over cvs from this morning ( version 0.9) should add a new file to the repository

     
    • assigned_to: nobody --> jhermann
     
    • status: open --> closed-rejected
     
  • Logged In: YES
    user_id=100649

    too special to commit to core code