From c7afd7951cea66eb751834332f30969006ea4bad Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gina=20H=C3=A4u=C3=9Fge?= Date: Thu, 21 Feb 2019 15:29:20 +0100 Subject: [PATCH] =?UTF-8?q?=F0=9F=92=9A=20Fix=20tests=20(final=20pass)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../comm/protocol/reprap/util/__init__.py | 4 --- src/octoprint/printer/__init__.py | 26 ------------------- 2 files changed, 30 deletions(-) diff --git a/src/octoprint/comm/protocol/reprap/util/__init__.py b/src/octoprint/comm/protocol/reprap/util/__init__.py index 24b3165bd..1cab538c3 100644 --- a/src/octoprint/comm/protocol/reprap/util/__init__.py +++ b/src/octoprint/comm/protocol/reprap/util/__init__.py @@ -137,10 +137,6 @@ def normalize_command_handler_result(command, handler_results, tags_to_add=None) # entry is None, we'll ignore that entry and continue continue - if command.tags: - # copy the tags - tags = set(command.tags) - def expand_tags(tags, tags_to_add): tags = tags.copy() if tags_to_add and isinstance(tags_to_add, set): diff --git a/src/octoprint/printer/__init__.py b/src/octoprint/printer/__init__.py index d92da6c7d..9471d20a0 100644 --- a/src/octoprint/printer/__init__.py +++ b/src/octoprint/printer/__init__.py @@ -408,32 +408,6 @@ class PrinterInterface(object): return False - def select_file(self, path, sd, printAfterSelect=False, pos=None, tags=None, *args, **kwargs): - """ - Selects the specified ``path`` for printing, specifying if the file is to be found on the ``sd`` or not. - Optionally can also directly start the print after selecting the file. - - Arguments: - path (str): The path to select for printing. Either an absolute path or relative path to a local file in - the uploads folder or a filename on the printer's SD card. - sd (boolean): Indicates whether the file is on the printer's SD card or not. - printAfterSelect (boolean): Indicates whether a print should be started - after the file is selected. - tags (set of str): An optional set of tags to attach to the command(s) throughout their lifecycle - - Raises: - InvalidFileType: if the file is not a machinecode file and hence cannot be printed - InvalidFileLocation: if an absolute path was provided and not contained within local storage or - doesn't exist - """ - raise NotImplementedError() - - def unselect_file(self, *args, **kwargs): - """ - Unselects and currently selected file. - """ - raise NotImplementedError() - def start_print(self, tags=None, pos=None, *args, **kwargs): """ Starts printing the currently selected file. If no file is currently selected, does nothing.