Beispiel #1
0
	def _constructEnginesList(self):
		"""Returns the description of constructor arguments for all available engines"""

		tags = brain.getEngineTags()
		default_tag = brain.getDefaultEngineTag()

		res = ""
		for tag in tags:
			engine_class = brain.engine.getEngineByTag(tag)
			arg_spec = tuple(inspect.getfullargspec(engine_class.__init__))
			arg_str = inspect.formatargspec(*arg_spec)
			default = " (default)" if tag == default_tag else ""
			res += tag + default + ": " + arg_str + "\n"
		return res
Beispiel #2
0
	def export_getEngineTags(self):
		return brain.getEngineTags()