Skip to content
Snippets Groups Projects
Commit 8c312267 authored by piotr.kupczyk@id.ethz.ch's avatar piotr.kupczyk@id.ethz.ch
Browse files

SSDM-12363 : Zenodo publication is not reflected in ELN LIMS - fix...

SSDM-12363 : Zenodo publication is not reflected in ELN LIMS - fix java.lang.ClassNotFoundException problem that was appearing when a result from publication-api.py was deserialized in zenodoExports.py registerPublicationInOpenbis method
parent a02a2ee9
No related branches found
Tags 20.10.3
1 merge request!5420.10.10.1
......@@ -15,6 +15,7 @@ from ch.ethz.sis.openbis.generic.asapi.v3.dto.space.id import SpacePermId
from ch.systemsx.cisd.common.logging import LogCategory
from ch.systemsx.cisd.openbis.generic.client.web.client.exception import UserFailureException
from java.util import ArrayList
from java.util import HashMap
from org.apache.log4j import Logger
operationLog = Logger.getLogger(str(LogCategory.OPERATION) + '.publication-api.py')
......@@ -31,10 +32,10 @@ def process(context, parameters):
except Exception as e:
operationLog.error('Exception at: ' + traceback.format_exc())
operationLog.error('Exception: ' + str(e))
result = {
'status': 'FAILED',
'error': str(e)
}
result = HashMap()
result.put('status','FAILED')
result.put('error',str(e))
return result
return result
......@@ -47,9 +48,9 @@ def insertPublication(context, parameters):
sampleId = createPublicationSample(parameters, sessionToken, v3).get(0)
createDataSet(parameters, sessionToken, v3, sampleId)
return {
'status': 'OK',
}
result = HashMap()
result.put('status','OK')
return result
def createDataSet(parameters, sessionToken, v3, sampleId):
......
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