--- mentalwealth/mentalwealth.py 2009-12-31 12:34:38.675918447 +0000 +++ mentalwealth/mentalwealth.py 2009-12-31 12:38:55.421923779 +0000 @@ -8,6 +8,7 @@ For more info see the readme.html. """ +from MoinMoin.action import get_available_actions from MoinMoin.theme import ThemeBase from MoinMoin.wikiutil import link_tag as link from MoinMoin.wikiutil import quoteWikinameURL as quoteURL @@ -62,7 +63,7 @@ page = d['page'] # we can do these actions - available = self.request.getAvailableActions(page) + available = get_available_actions(self.request.cfg, page, self.request.user) # start building list of links builder = BuildLinks(self.request, page) @@ -108,7 +109,7 @@ builder.addplain(parent.link_to(self.request, _get('Show Parent', formatted=False))) # determine which actions we can use - available = self.request.getAvailableActions(page) + available = get_available_actions(self.request.cfg, page, self.request.user) for action, label in self.choices: if action == 'refresh' and not page.canUseCache(): continue