mirror of
https://github.com/galaxyproject/galaxy.git
synced 2026-09-24 16:30:27 +08:00
Add requires_domain to entry_point. Default is False. Currently only True works.
This commit is contained in:
@@ -216,7 +216,8 @@ class XmlToolSource(ToolSource):
|
||||
name = ep_el.get('name', None)
|
||||
if name:
|
||||
name = name.strip()
|
||||
rtt.append(dict(port=port, url=url, name=name))
|
||||
requires_domain = string_as_bool(ep_el.attrib.get("requires_domain", False))
|
||||
rtt.append(dict(port=port, url=url, name=name, requires_domain=requires_domain))
|
||||
return rtt
|
||||
|
||||
def parse_hidden(self):
|
||||
|
||||
@@ -2452,6 +2452,8 @@ class RealTimeTool(Tool):
|
||||
def __init__(self, config_file, tool_source, app, **kwd):
|
||||
assert app.config.interactivetools_enable, ValueError('Trying to load an InteractiveTool, but InteractiveTools are not enabled.')
|
||||
super(RealTimeTool, self).__init__(config_file, tool_source, app, **kwd)
|
||||
for port in self.ports:
|
||||
assert port.get('requires_domain', None), ValueError('InteractiveTools currently only work when requires_domain is True for each entry_point.')
|
||||
|
||||
def __remove_realtime_by_job(self, job):
|
||||
if job:
|
||||
|
||||
Reference in New Issue
Block a user