Skip to content

Instantly share code, notes, and snippets.

def get_cdm_uuid(self, cdm):                                                
        cdm_uuid = cdm['datum']['uuid']                                         
        if type(cdm_uuid ) == unicode:                                          
            return str(cdm_uuid)                                                
        uuid_str = str(uuid.UUID(bytes = cdm_uuid))                             
        return uuid_str