refresh
Contents
Background and rationale
The in-built refresh is called to delete and allow the refreshing of the page cache. A locally modified version of this is needed if additional caching has been implemented (see for example, PDF.py). The in-built version calls Moin.page.send_page with no options set, however, for pages displayed by mode other than the default, this is not ideal. For example, in a page display by default in print mode that contains a refresh macro, such as <<Action(refresh, text=reset>>, there was no way to force a return to print mode.
Description
This is a simple modification to the in-built refresh which allows print mode to be set by adding print_mode=print_mode to its final Moin.page.send_page call.
Usage
When called as a macro:
<<Action(refresh, text=reset, print=yes)>>
this adds ?print=yes&action=refresh to the URL.
Prerequisites
None
Download & Release Notes
Download |
Release Version |
Moin Version |
Release Notes |
1.1 |
1.9.8 |
|
For installation, rename files to remove version number (e.g. -1.0).
Examples
See SentenceMachine and StudentGroups.
History
See individual source files for details of version history.
Developed with inspiration and MoinMoin code from:
@copyright: 2000-2004 Juergen Hermann <jh@web.de>
@copyright: 2006 ThomasWaldmann
- @license: GNU GPL, see COPYING for details.
Copyright
@copyright: 2017 Ian Riley <ian@riley.asia>
License
GNU GPL, see COPYING for details.
Known issues and limitations
- None identified
- Hits
524