changeset 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 2f64eb47d934
children 3c4c1424165a
files MoinMoin/theme/__init__.py MoinMoin/theme/classic.py
diffstat 2 files changed, 4 insertions(+), 2 deletions(-) [+]
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
--- a/MoinMoin/theme/classic.py	Tue Jun 17 01:41:55 2008 +0200
+++ b/MoinMoin/theme/classic.py	Tue Jun 17 18:29:35 2008 +0200
@@ -13,6 +13,7 @@
 """
 
 from MoinMoin import caching
+from MoinMoin.action import get_available_actions
 from MoinMoin.theme import ThemeBase
 
 
@@ -183,7 +184,7 @@
         rev = d['rev']
         html = []
         page = d['page']
-        available = request.getAvailableActions(page)
+        available = get_available_actions(request.cfg, page, request.user)
         if available:
             available = list(available)
             available.sort()