diff MoinMoin/theme/__init__.py @ 4173:051391d5662d

Remove deprecated calls to request.getAvailableActions
author Florian Krupicka <florian.krupicka@googlemail.com>
date Tue, 17 Jun 2008 18:29:35 +0200
parents 02fcab41459f
children 5bcd612588fc
line wrap: on
line diff
--- a/MoinMoin/theme/__init__.py	Tue Jun 17 01:41:55 2008 +0200
+++ b/MoinMoin/theme/__init__.py	Tue Jun 17 18:29:35 2008 +0200
@@ -7,6 +7,7 @@
 """
 
 from MoinMoin import i18n, wikiutil, config, version, caching
+from MoinMoin.action import get_available_actions
 from MoinMoin.Page import Page
 from MoinMoin.util import pysupport
 
@@ -964,7 +965,7 @@
         disabled = ' disabled class="disabled"'
 
         # Format standard actions
-        available = request.getAvailableActions(page)
+        available = get_available_actions(request.cfg, page, request.user)
         for action in menu:
             data = {'action': action, 'disabled': '', 'title': titles[action]}
             # removes excluded actions from the more actions menu