Skip to content
Snippets Groups Projects
Commit 65e57c7b authored by juanf's avatar juanf
Browse files

SSDM-1529: PAPER - OPENBIS - Migrate Manage Properties YeastLab Continuation

SVN: 33466
parent e9ff5440
No related branches found
No related tags found
No related merge requests found
......@@ -196,7 +196,7 @@ def batchColumnNames():
return allTypes
def updateFromBatchInput(bindings):
print "--------> UPDATE FROM BATCH INPUT: "
#print "--------> UPDATE FROM BATCH INPUT: "
elements = []
#Links Configuration
......@@ -206,10 +206,10 @@ def updateFromBatchInput(bindings):
for annotableSampleType in getAllAnnotableSampleTypesForType(annotableType):
annotatedSamples = bindings.get(annotableSampleType)
print "-----> TYPE: " + str(annotableSampleType) + " BINDINGS: " + str(annotatedSamples)
#print "-----> TYPE: " + str(annotableSampleType) + " BINDINGS: " + str(annotatedSamples)
if (annotatedSamples != None and annotatedSamples != ""):
#Annotations
print "-----> Annotations"
#print "-----> Annotations"
if annotableSampleType not in typesToCopyFrom:
for sampleLine in annotatedSamples.split("\\"):
propertyTypes = getPropertyTypesForSampleTypeFromAnnotableType(annotableSampleType, annotableType)
......@@ -231,21 +231,21 @@ def updateFromBatchInput(bindings):
if identifier is not None:
elements.append(sampleLink)
#Links
print "-----> links"
#print "-----> links"
for typeToCopyFrom in typesToCopyFrom:
typeToCopy = typesToCopyFrom[typeToCopyFrom]
print "-----> TYPE TO COPY FROM: " + str(typeToCopyFrom)
print "-----> TYPE TO COPY: " + str(typeToCopy)
#print "-----> TYPE TO COPY FROM: " + str(typeToCopyFrom)
#print "-----> TYPE TO COPY: " + str(typeToCopy)
identifiersToCopyFrom = bindings.get(typeToCopyFrom)
if identifiersToCopyFrom is not None:
print "-----> IDENTIFIERS TO COPY FROM: " + str(identifiersToCopyFrom)
#print "-----> IDENTIFIERS TO COPY FROM: " + str(identifiersToCopyFrom)
identifiersForCopy = identifiersToCopyFrom.split(',')
for identifierToCopyFrom in identifiersForCopy:
print "-----> IDENTIFIER TO COPY FROM: " + str(identifierToCopyFrom)
#print "-----> IDENTIFIER TO COPY FROM: " + str(identifierToCopyFrom)
permIdFromIdentifier = entityInformationProvider().getSamplePermId(identifierToCopyFrom)
print "-----> PERMID TO COPY FROM: " + str(permIdFromIdentifier)
#print "-----> PERMID TO COPY FROM: " + str(permIdFromIdentifier)
parentsToCopyFromPermId = entityInformationProvider().getSamplePropertyValue(permIdFromIdentifier, "ANNOTATIONS_STATE")
print "-----> ELEMENTS TO COPY: " + str(parentsToCopyFromPermId)
#print "-----> ELEMENTS TO COPY: " + str(parentsToCopyFromPermId)
parentElements = list(propertyConverter().convertStringToElements(parentsToCopyFromPermId))
for parentAnnotation in parentElements:
if parentAnnotation.getAttribute("sampleType") == typeToCopy:
......
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