Skip to content
Snippets Groups Projects
Commit e68db82d authored by sveseli's avatar sveseli
Browse files

enhanced attributes for mong plugin

parent 3bc97f37
No related branches found
No related tags found
No related merge requests found
...@@ -28,6 +28,9 @@ class MongoDbFileCatalogPlugin(FileProcessor): ...@@ -28,6 +28,9 @@ class MongoDbFileCatalogPlugin(FileProcessor):
# Prepare catalogging entry # Prepare catalogging entry
fileInfo2 = {} fileInfo2 = {}
for key in ['md5Sum', 'fileSize', 'fileCreationTime', 'fileCreationTimeStamp']:
if fileInfo.has_key(key):
fileInfo2[key] = fileInfo.get(key, '')
fileInfo2['fileName'] = os.path.basename(experimentFilePath) fileInfo2['fileName'] = os.path.basename(experimentFilePath)
fileInfo2['experimentStorageDirectory'] = experimentStorageDirectory fileInfo2['experimentStorageDirectory'] = experimentStorageDirectory
fileInfo2['storageHost'] = storageHost fileInfo2['storageHost'] = storageHost
......
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