refresh

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

refresh-1.1.py

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:

License

GNU GPL, see COPYING for details.

Known issues and limitations


Hits

524

refresh.py (last edited 2019-03-01 12:36:05 by IanRiley)