

def process_RetrieveResult(self):
    if (self.reservation_id is None):
        return 'Reservation id not found in cookie'
    reservation_status = weblab_api.api.get_reservation_status()
    try:
        response = json.loads(reservation_status.initial_data)
    except:
        return ('Error occurred: %s' % reservation_status.initial_data)
    code = response['code']
    results = response['results']
    xmlResults = response['xmlResults']
    return serializer.generate_retrieve_result_response(code, results, xmlResults)

dataset/ETHPy150Open weblabdeusto/weblabdeusto/server/src/weblab/core/web/ilab.py process_RetrieveResult/original