#format wiki #language en #pragma section-numbers off #acl IanRiley:read,write,delete,revert,admin All:read,attach,detach #pragma supplementation-page on = 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 `<>`, 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: {{{ <> }}} this adds `?print=yes&action=refresh` to the URL. == Prerequisites == None == Download & Release Notes == || Download || Release Version || Moin Version || Release Notes || || [[attachment: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: . @copyright: 2000-2004 Juergen Hermann . @copyright: 2006 MoinMoin:ThomasWaldmann . @license: GNU GPL, see COPYING for details. == Copyright == . @copyright: 2017 Ian Riley == License == GNU GPL, see COPYING for details. == Known issues and limitations == * None identified ----- Hits:: <>