Esempio n. 1
0
 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)
Esempio n. 2
0
 def destination_node(self, instance: Pipe) -> str:
     model_name = instance.destination.__class__.__name__
     pk = instance.destination.id
     return Html.admin_link(model_name, pk)
Esempio n. 3
0
 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)
Esempio n. 4
0
 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)
Esempio n. 5
0
 def source_node(self, instance: Pipe) -> str:
     model_name = instance.source.__class__.__name__
     pk = instance.source.id
     return Html.admin_link(model_name, pk)
Esempio n. 6
0
 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)
Esempio n. 7
0
 def id_link(self, instance: Pipe) -> str:
     return Html.admin_link("Pipe", instance.id)
Esempio n. 8
0
 def version_link(self, instance: AnalysisVersion) -> str:
     pk = instance.id
     text = instance.title
     return Html.admin_link("AnalysisVersion", pk, text)
Esempio n. 9
0
 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)
Esempio n. 10
0
 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)
Esempio n. 11
0
 def id_link(self, instance: Node) -> str:
     model_name = instance.__class__.__name__
     pk = instance.id
     return Html.admin_link(model_name, pk)
Esempio n. 12
0
 def id_link(self, instance: OutputDefinition) -> str:
     model_name = instance.outputdefinition.__class__.__name__
     pk = instance.outputdefinition.id
     return Html.admin_link(model_name, pk)
Esempio n. 13
0
 def id_link(self, instance: AnalysisVersion) -> str:
     model_name = instance.__class__.__name__
     pk = instance.id
     return Html.admin_link(model_name, pk)
Esempio n. 14
0
 def definition_link(self, instance: Output) -> str:
     pk = instance.definition.id
     text = instance.definition.key
     return Html.admin_link("OutputDefinition", pk, text)
Esempio n. 15
0
 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)
Esempio n. 16
0
 def run_link(self, instance: Output) -> str:
     model_name = instance.run.__class__.__name__
     pk = instance.run.id
     return Html.admin_link(model_name, pk)