def do_POST(self, handler) :

        try :
            AbstractGCodeAction.do_POST( self, handler )

            sleep( 0.2 );

            for message in configuration.printer_manager.messages :
                handler.wfile.write( message + "\n" )

            for message in configuration.printer_manager.warnings :
                handler.wfile.write( message + "\n")

            for message in configuration.printer_manager.errors :
                handler.wfile.write( message + "\n")

            configuration.printer_manager.clear_messages()
        
        except Exception as e :
            handler.wfile.write( "Failed : " + str( e ) )
            print(traceback.format_exc())
Beispiel #2
0
    def do_POST(self, handler) :
        AbstractGCodeAction.do_POST( self, handler )

        self.send_redirect( handler, "/" )