From: Antoine Brenner <brenner@vi...> - 2003-10-27 09:48:13
I would like to change the default action list that can be found
at the bottom of every page (What looks like:
"Or try one of these actions: ..." )
The list is generated in wikiutil.py by the following code:
> dummy, actions = getPlugins()
> first = 1
> for action in actions:
> if action != string.upper(action): continue
> print (', ', _('Or try one of these actions: '))[first]
> '%s?action=%s' % (quoteWikiname(pagename), action), action))
> first = 0
> if not first: print "<br>"
I could define a "useractions" list in moin_config.py, and check in the above
code if such list exists, in which case I could use it instead of "actions".
However, I am not sure this is the best way. (Maybe I should extend getPlugins
and not change anything here for example ?)
Could anyone give me advice on this ? (I would like to see this enter the CVS
sometimes, so my change should fit well in the code structure).