About
This macro lists all deleted pages of the wiki which have been deleted by ?action=delete but still remain on disk. Sorted by title the acls of the pages are shown as well as links to easiliy unerase or completely purge ("nuke") a page from the filesystem. You have to be superuser to call this macro.
This macro is designed to give wiki admins a helping hand in doing a good job - especially to avoid problems when normal users without admin rights try to recreate a deleted page with acl settings (see MoinMoinBugs/ACLexistsOnDeletedPageAndPreventsForCreation and MoinMoinBugs/AclErrorOnUndeletedPage).
Installing
Step 1
Install DeletedPages.py in Moin's macro directory.
Install purge.py in Moin's action directory.
Step 2
Create a new wikipage DeletedPages in the underlay dir:
## Please edit system and help pages ONLY in the moinmaster wiki! For more ## information, please see MoinMaster:MoinPagesEditorGroup. ##master-page:Unknown-Page ##master-date:Unknown-Date #acl MoinPagesEditorGroup:read,write,delete,revert All:read #format wiki #language en This is an index of all deleted pages in this Wiki. ---- <<DeletedPages>>
You may also change the acls so that only superusers are able to view the page.
Step 3
Make sure you are superuser with read, write, delete, revert, admin rights and have a try now. But be aware: completely nuking files does really work
If the DeletedPages macro is too slow for you, you can also try this low-level-version which should be much, much faster: DeletedPages_lowlevel.py
Note
This macro seems to not working with MoinMoin 1.9.3. -- MartinK 2010-09-07 09:45:41
To fix the errors with MoinMoin 1.9.9 you need to make the following two changes:
delete one import line in DeletedPages.py
--- /tmp/DeletedPages.py 2018-04-21 22:07:44.863476067 +0200 +++ plugin/macro/DeletedPages.py 2018-04-21 23:17:22.545744772 +0200 @@ -30,7 +30,6 @@ import os from MoinMoin import wikiutil -from MoinMoin import wikimacro from MoinMoin import user from MoinMoin.Page import Page
- fix send_page parameters
--- /tmp/purge.py 2018-04-21 22:08:11.167593920 +0200 +++ plugin/action/purge.py 2018-04-21 22:52:52.938391506 +0200 @@ -51,5 +51,6 @@ else: result = _('Page does not exist.') - Page(request, pagename).send_page(request, result) + request.theme.add_msg(result, "info") + Page(request, pagename).send_page()