#NEWLINE# def _get_by_ref( self , resource_ref , exclude_fields = None ) : #NEWLINE# #INDENT# try : #NEWLINE# #INDENT# ref = ResourceReference . from_string_reference ( ref = resource_db ) #NEWLINE# #UNINDENT# except Exception : #NEWLINE# #INDENT# return None #NEWLINE# #UNINDENT# resource_db = self . access . query ( name = ref . name , pack = ref . pack , exclude_fields = exclude_fields ) . first ( ) #NEWLINE# return resource_db