Back to index

moin  1.9.0~rc2
Functions
MoinMoin.action.refresh Namespace Reference

Functions

def execute

Function Documentation

def MoinMoin.action.refresh.execute (   pagename,
  request 
)
Handle refresh action 

Definition at line 11 of file refresh.py.

00011 
00012 def execute(pagename, request):
00013     """ Handle refresh action """
00014     # Without arguments, refresh action will refresh the page text_html cache.
00015     arena = request.values.get('arena', 'Page.py')
00016     if arena == 'Page.py':
00017         arena = Page(request, pagename)
00018     key = request.values.get('key', 'text_html')
00019 
00020     # Remove cache entry (if exists), and send the page
00021     from MoinMoin import caching
00022     caching.CacheEntry(request, arena, key, scope='item').remove()
00023     caching.CacheEntry(request, arena, "pagelinks", scope='item').remove()
00024     request.page.send_page()
00025 

Here is the call graph for this function: