def is_show_uncategorized(self, request):
        """Return the result of the "?show_uncategorized" query string param"""

        show_uncategorized = request.GET.get('show_uncategorized', False)
        if show_uncategorized is True or show_uncategorized == 'true':
            return True
        return False
def handleevent(self):
        """
        Event-handler for the 'widgets' demo
        """
        while True:
            event = self.dialog.waitForEvent()
            if event.eventType() == yui.YEvent.CancelEvent:
                self.dialog.destroy()
                break
            if event.widget() == self.closebutton:
                info = Info("Quit confirmation", 1, "Are you sure you want to quit?")
                if self.ask_YesOrNo(info):
                    self.dialog.destroy()
                    break
            if event.widget() == self.aboutbutton:
                self.aboutDialog()