Skip to content
Snippets Groups Projects
Commit 8cd22908 authored by barillac's avatar barillac
Browse files

boxes added

SVN: 33058
parent da30c7ff
No related branches found
No related tags found
No related merge requests found
...@@ -64,7 +64,7 @@ def setEntityProperties(tr, definition, entity, properties): ...@@ -64,7 +64,7 @@ def setEntityProperties(tr, definition, entity, properties):
vocabulary.addTerm(term) vocabulary.addTerm(term)
#Uses new vocabulary term #Uses new vocabulary term
propertyValue = codeToUse propertyValue = codeToUse
print repr("* ENTITY [" + entity.getCode() + "] created for Vocabulary [" + propertyDefinition[4] + "] not found value: [" + labelToUse + "] new term with code [" + codeToUse + "]") print repr("* ENTITY [" + entity.getCode() + "]: for Vocabulary [" + propertyDefinition[4] + "], found value not in list: [" + labelToUse + "]. Created new term with code [" + codeToUse + "]")
if propertyDefinition is not None: #Sometimes special fields are added for other purposes, these should not be set if propertyDefinition is not None: #Sometimes special fields are added for other purposes, these should not be set
entity.setPropertyValue(propertyCode, propertyValue) entity.setPropertyValue(propertyCode, propertyValue)
...@@ -397,6 +397,10 @@ class StrainOpenBISDTO(FMPeterOpenBISDTO): ...@@ -397,6 +397,10 @@ class StrainOpenBISDTO(FMPeterOpenBISDTO):
code = self.values["STRAIN_ID_NR"] code = self.values["STRAIN_ID_NR"]
return code return code
class StrainBoxAdaptor(FMPeterBoxAdaptor):
selectBoxQuery = "SELECT * FROM \"strain boxes\""
entityIdFieldName = "strain ID"
entityCodeFieldName = "STRAIN_ID_NR"
## ##
## Plasmids ## Plasmids
## ##
...@@ -421,6 +425,11 @@ class PlasmidOpenBISDTO(FMPeterOpenBISDTO): ...@@ -421,6 +425,11 @@ class PlasmidOpenBISDTO(FMPeterOpenBISDTO):
code = self.values["PLASMID_ID_NR"] code = self.values["PLASMID_ID_NR"]
return code return code
class PlasmidBoxAdaptor(FMPeterBoxAdaptor):
selectBoxQuery = "SELECT * FROM \"plasmid boxes\""
entityIdFieldName = "plasmid ID"
entityCodeFieldName = "PLASMID_ID_NR"
## ##
## Oligos ## Oligos
## ##
...@@ -445,6 +454,11 @@ class OligoOpenBISDTO(FMPeterOpenBISDTO): ...@@ -445,6 +454,11 @@ class OligoOpenBISDTO(FMPeterOpenBISDTO):
code = self.values["OLIGO_ID_NR"] code = self.values["OLIGO_ID_NR"]
return code return code
class OligoBoxAdaptor(FMPeterBoxAdaptor):
selectBoxQuery = "SELECT * FROM \"oligo boxes\""
entityIdFieldName = "oligo ID"
entityCodeFieldName = "OLIGO_ID_NR"
## ##
## Chemical ## Chemical
## ##
...@@ -562,17 +576,21 @@ fmConnStringServer = "jdbc:filemaker://fm.ethz.ch/" ...@@ -562,17 +576,21 @@ fmConnStringServer = "jdbc:filemaker://fm.ethz.ch/"
fmUserServer= "sistemp" fmUserServer= "sistemp"
fmPassServer = "ibcimsb2014" fmPassServer = "ibcimsb2014"
# AntibodyAdaptor(fmConnString, fmUser, fmPass, "BOXIT_antibodies_Peter"), adaptors = [ AntibodyAdaptor(fmConnString, fmUser, fmPass, "BOXIT_antibodies_Peter"),
# AntibodyBoxAdaptor(fmConnString, fmUser, fmPass, "BOXIT_antibody_boxes_Peter"), AntibodyBoxAdaptor(fmConnString, fmUser, fmPass, "BOXIT_antibody_boxes_Peter"),
# PlasmidAdaptor(fmConnString, fmUser, fmPass, "BOXIT_plasmids_Peter"), PlasmidAdaptor(fmConnString, fmUser, fmPass, "BOXIT_plasmids_Peter"),
# StrainAdaptor(fmConnString, fmUser, fmPass, "BOXIT_strains_Peter"), PlasmidBoxAdaptor(fmConnString, fmUser, fmPass, "BOXIT_plasmid_boxes_Peter"),
# SirnaAdaptor(fmConnString, fmUser, fmPass, "BOXIT_Main_Menu_Peter"), StrainAdaptor(fmConnString, fmUser, fmPass, "BOXIT_strains_Peter"),
# ChemicalAdaptor(fmConnString, fmUser, fmPass, "BOXIT_Main_Menu_Peter"), StrainBoxAdaptor(fmConnString, fmUser, fmPass, "BOXIT_strain_boxes_Peter"),
# OligoAdaptor(fmConnString, fmUser, fmPass, "BOXIT_oligos_Peter"), OligoAdaptor(fmConnString, fmUser, fmPass, "BOXIT_oligos_Peter"),
OligoBoxAdaptor(fmConnString, fmUser, fmPass, "BOXIT_oligo_boxes_Peter"),
adaptors = [CellAdaptor(fmConnString, fmUser, fmPass, "BOXIT_cells_Peter"), CellAdaptor(fmConnString, fmUser, fmPass, "BOXIT_cells_Peter"),
CellBoxAdaptor(fmConnString, fmUser, fmPass, "BOXIT_cell_boxes_Peter"), CellBoxAdaptor(fmConnString, fmUser, fmPass, "BOXIT_cell_boxes_Peter"),
SirnaAdaptor(fmConnString, fmUser, fmPass, "BOXIT_Main_Menu_Peter"),
ChemicalAdaptor(fmConnString, fmUser, fmPass, "BOXIT_Main_Menu_Peter"),
DocumentsAdaptor(fmConnString, fmUser, fmPass, "BOXIT_documents_Peter")] DocumentsAdaptor(fmConnString, fmUser, fmPass, "BOXIT_documents_Peter")]
def createDataHierarchy(tr): def createDataHierarchy(tr):
inventorySpace = tr.getSpace("INVENTORY") inventorySpace = tr.getSpace("INVENTORY")
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment