2011-10-15 | Paul Boddie | raw files shortlog changelog graph | Show an error instead of a dialogue when the page is not a queued changes page. | |
actions/ApproveChanges.py (file) |
1.1 --- a/actions/ApproveChanges.py Sat Oct 15 19:20:52 2011 +0200 1.2 +++ b/actions/ApproveChanges.py Sat Oct 15 20:40:57 2011 +0200 1.3 @@ -52,6 +52,10 @@ 1.4 _ = self._ 1.5 request = self.request 1.6 fmt = request.formatter 1.7 + 1.8 + if not is_queued_changes_page(request, self.pagename): 1.9 + return fmt.paragraph(1) + fmt.text(_("This page does not show queued changes.")) + fmt.paragraph(0) 1.10 + 1.11 rev = self.get_revision() 1.12 1.13 # Get information about the queued changes.