#NEWLINE# def get_species( self , name ) : #NEWLINE# #INDENT# 'Look up a species from the index and return contents of species\n        files.' #NEWLINE# c = self . assets . db . cursor ( ) #NEWLINE# c . execute ( "select * from assets where type = 'species' and name = ?" , ( name . lower ( ) , ) ) #NEWLINE# species = c . fetchone ( ) #NEWLINE# if ( species is None ) : #NEWLINE# #INDENT# logging . warning ( 'Unable to load species: %s' , name ) #NEWLINE# return None #NEWLINE# #UNINDENT# species_data = self . assets . read ( species [ 0 ] , species [ 1 ] ) #NEWLINE# if ( species_data is None ) : #NEWLINE# #INDENT# logging . warning ( 'No race set on player' ) #NEWLINE# return None #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# return ( species , species_data )