def service(self, request, response):
        """Handle GET and POST requests from client's browser."""
        assert self.__init, 'VerseMatch was never initialized!'
        state = self.get_state()
        # Handle action desired by the client.
        action = request.getParameter('action')
        state = self.exe_action(action, state, request)
        # Render HTML specified by current state.
        response.setContentType('text/html')
        out = response.getWriter()
        code = self.render_html(state)
        out.print(code)
Handle GET and POST requests from client's browser.
recipes/Python/577043_Bible_Verse_Quiz__VerseMatchpy/recipe-577043.py