Skip to content
Snippets Groups Projects
Commit 2e4eb378 authored by felmer's avatar felmer
Browse files

SSDM-12929: supress top level 'original' in data set file system view if there is no sibling

parent f70c2a40
No related branches found
No related tags found
1 merge request!40SSDM-13578 : 2PT : Database and V3 Implementation - include the new AFS "free"...
...@@ -309,7 +309,10 @@ def addSampleChildNodes(path, samplePermId, response, acceptor, context): ...@@ -309,7 +309,10 @@ def addSampleChildNodes(path, samplePermId, response, acceptor, context):
addNodes("SAMPLE", entitiesByName, path, response, context) addNodes("SAMPLE", entitiesByName, path, response, context)
def addDataSetFileNodes(path, dataSetCode, contentNode, response, acceptor, context): def addDataSetFileNodes(path, dataSetCode, contentNode, response, acceptor, context):
for childNode in contentNode.getChildNodes(): childNodes = contentNode.getChildNodes()
if len(childNodes) == 1 and childNodes[0].getRelativePath() == 'original':
childNodes = childNodes[0].getChildNodes()
for childNode in childNodes:
nodeName = childNode.getName() nodeName = childNode.getName()
filePath = "%s/%s" % (path, nodeName) filePath = "%s/%s" % (path, nodeName)
filePermId = "%s::%s" % (dataSetCode, childNode.getRelativePath()) filePermId = "%s::%s" % (dataSetCode, childNode.getRelativePath())
......
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