From 4904c184f7ee9458debce0f5bc30a1f7610e050b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gina=20H=C3=A4u=C3=9Fge?= Date: Thu, 29 May 2014 13:02:56 +0200 Subject: [PATCH 1/3] Removed accidentally committed dummy error (for testing pnotify migration) --- src/octoprint/static/js/app/main.js | 3 --- 1 file changed, 3 deletions(-) diff --git a/src/octoprint/static/js/app/main.js b/src/octoprint/static/js/app/main.js index ab23d9e7d..ba24a4609 100644 --- a/src/octoprint/static/js/app/main.js +++ b/src/octoprint/static/js/app/main.js @@ -403,9 +403,6 @@ $(function() { firstRunViewModel.showDialog(); } - var html = "

Rendering of timelapse someTimelapse.mpg failed with return code someReturnCode

"; - html += pnotifyAdditionalInfo('
some Error\nwith\nsome\nlines
'); - new PNotify({title: "Rendering failed", text: html, type: "error", hide: false}); } ); From 778f9039fb09f4bcbf6e8c29bbc94269470a6048 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gina=20H=C3=A4u=C3=9Fge?= Date: Thu, 29 May 2014 13:04:51 +0200 Subject: [PATCH 2/3] supportRepetierTargetTemp being true is a too broad expression, also check for TargetExtr or TargetBed on line See #486 --- src/octoprint/util/comm.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/octoprint/util/comm.py b/src/octoprint/util/comm.py index 1c0f49d99..42c39624b 100644 --- a/src/octoprint/util/comm.py +++ b/src/octoprint/util/comm.py @@ -665,7 +665,7 @@ class MachineCom(object): t = time.time() self._heatupWaitTimeLost = t - self._heatupWaitStartTime self._heatupWaitStartTime = t - elif supportRepetierTargetTemp: + elif supportRepetierTargetTemp and ('TargetExtr' in line or 'TargetBed' in line): matchExtr = self._regex_repetierTempExtr.match(line) matchBed = self._regex_repetierTempBed.match(line) From d1d6e8e11cce73cc07f6f6f958f86e42f0796a16 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gina=20H=C3=A4u=C3=9Fge?= Date: Thu, 29 May 2014 13:09:29 +0200 Subject: [PATCH 3/3] Filename might be None, do not try to pass that to os.path.basename. See #486 --- src/octoprint/printer.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/octoprint/printer.py b/src/octoprint/printer.py index b918b9be4..7b897ee73 100644 --- a/src/octoprint/printer.py +++ b/src/octoprint/printer.py @@ -397,7 +397,7 @@ class Printer(): self._stateMonitor.setJobData({ "file": { - "name": os.path.basename(filename), + "name": os.path.basename(filename) if filename is not None else None, "origin": FileDestinations.SDCARD if sd else FileDestinations.LOCAL, "size": filesize, "date": date