# HG changeset patch # User Paul Boddie # Date 1318704057 -7200 # Node ID 70985d1d621680f30bf9c5a7d5fa21c1f5cdb015 # Parent 9a9d6e374d06a77e5cbaf3a51cca98318028ab08 Show an error instead of a dialogue when the page is not a queued changes page. diff -r 9a9d6e374d06 -r 70985d1d6216 actions/ApproveChanges.py --- a/actions/ApproveChanges.py Sat Oct 15 19:20:52 2011 +0200 +++ b/actions/ApproveChanges.py Sat Oct 15 20:40:57 2011 +0200 @@ -52,6 +52,10 @@ _ = self._ request = self.request fmt = request.formatter + + if not is_queued_changes_page(request, self.pagename): + return fmt.paragraph(1) + fmt.text(_("This page does not show queued changes.")) + fmt.paragraph(0) + rev = self.get_revision() # Get information about the queued changes.