From 3a914e4ed04b49dc6a20e7e2a8943ec7f4f6f33e Mon Sep 17 00:00:00 2001 From: Nicola Soranzo Date: Thu, 19 Dec 2019 13:52:14 +0000 Subject: [PATCH] Add implementation of `parse_interactivetool` to `CwlToolSource` class In https://github.com/galaxyproject/galaxy/pull/7494 and https://github.com/galaxyproject/galaxy/pull/8574 , the abstract `parse_interactivetool()` method was added to the `ToolSource` class without a corresponding implementation in its `CwlToolSource` subclass, leading to the following error: ``` In [4]: from galaxy.tool_util.parser.cwl import CwlToolSource In [5]: cts = CwlToolSource('path') --------------------------------------------------------------------------- TypeError Traceback (most recent call last) in () ----> 1 cts = CwlToolSource('path') TypeError: Can't instantiate abstract class CwlToolSource with abstract methods parse_interactivetool ``` --- lib/galaxy/tool_util/parser/cwl.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/lib/galaxy/tool_util/parser/cwl.py b/lib/galaxy/tool_util/parser/cwl.py index f08b48ec0d9..6e729ec9c28 100644 --- a/lib/galaxy/tool_util/parser/cwl.py +++ b/lib/galaxy/tool_util/parser/cwl.py @@ -100,6 +100,9 @@ class CwlToolSource(ToolSource): def parse_description(self): return self.tool_proxy.description() + def parse_interactivetool(self): + return [] + def parse_input_pages(self): page_source = CwlPageSource(self.tool_proxy) return PagesSource([page_source])