#NEWLINE# def get_from_uid( self , uid ) : #NEWLINE# #INDENT# data = self . get_data_from_uid ( uid ) #NEWLINE# if ( not data ) : #NEWLINE# #INDENT# return None #NEWLINE# #UNINDENT# klass = registry . identifiers . get ( data [ 'identifier' ] ) #NEWLINE# try : #NEWLINE# #INDENT# return klass . objects . get ( pk = data [ 'object_id' ] ) #NEWLINE# #UNINDENT# except klass . DoesNotExist : #NEWLINE# #INDENT# return None