def destination_analysis_version(self, instance: Pipe) -> str: version = instance.destination.analysis_version model_name = version.__class__.__name__ pk = version.id text = str(version) return Html.admin_link(model_name, pk, text)
def destination_node(self, instance: Pipe) -> str: model_name = instance.destination.__class__.__name__ pk = instance.destination.id return Html.admin_link(model_name, pk)
def source_port_key(self, instance: Pipe) -> str: definition = instance.source_port pk = definition.id text = definition.key return Html.admin_link("OutputDefinition", pk, text)
def pipeline_link(self, instance: Pipe) -> str: model_name = instance.pipeline.__class__.__name__ pk = instance.pipeline.id text = instance.pipeline.title return Html.admin_link(model_name, pk, text)
def source_node(self, instance: Pipe) -> str: model_name = instance.source.__class__.__name__ pk = instance.source.id return Html.admin_link(model_name, pk)
def analysis_version_link(self, instance: Node) -> str: model_name = instance.analysis_version.__class__.__name__ pk = instance.analysis_version.id text = str(instance.analysis_version) return Html.admin_link(model_name, pk, text)
def id_link(self, instance: Pipe) -> str: return Html.admin_link("Pipe", instance.id)
def version_link(self, instance: AnalysisVersion) -> str: pk = instance.id text = instance.title return Html.admin_link("AnalysisVersion", pk, text)
def input_specification_link(self, instance: AnalysisVersion) -> str: model_name = instance.input_specification.__class__.__name__ pk = instance.input_specification.id return Html.admin_link(model_name, pk)
def analysis_link(self, instance: OutputSpecification) -> str: model_name = instance.analysis.__class__.__name__ pk = instance.analysis.id text = instance.analysis.title return Html.admin_link(model_name, pk, text)
def id_link(self, instance: Node) -> str: model_name = instance.__class__.__name__ pk = instance.id return Html.admin_link(model_name, pk)
def id_link(self, instance: OutputDefinition) -> str: model_name = instance.outputdefinition.__class__.__name__ pk = instance.outputdefinition.id return Html.admin_link(model_name, pk)
def id_link(self, instance: AnalysisVersion) -> str: model_name = instance.__class__.__name__ pk = instance.id return Html.admin_link(model_name, pk)
def definition_link(self, instance: Output) -> str: pk = instance.definition.id text = instance.definition.key return Html.admin_link("OutputDefinition", pk, text)
def analysis_version_link(self, instance: Output) -> str: analysis_version = instance.run.analysis_version model_name = analysis_version.__class__.__name__ pk = analysis_version.id text = str(analysis_version) return Html.admin_link(model_name, pk, text)
def run_link(self, instance: Output) -> str: model_name = instance.run.__class__.__name__ pk = instance.run.id return Html.admin_link(model_name, pk)