#NEWLINE# @ resource_error #NEWLINE# def getChild( self , name , request ) : #NEWLINE# #INDENT# 'overrode to route us on our way' #NEWLINE# if ( not name ) : #NEWLINE# #INDENT# return self #NEWLINE# #UNINDENT# if ( ( name . upper ( ) == 'ENVIRONMENT' ) and ( self . entity . KEY == 'SERVER' ) ) : #NEWLINE# #INDENT# env = None #NEWLINE# for i in self . entity . search ( 'ENVIRONMENT' ) : #NEWLINE# #INDENT# if i . isChild ( self . entity ) : #NEWLINE# #INDENT# env = data #NEWLINE# break #NEWLINE# #UNINDENT# #UNINDENT# if ( not env ) : #NEWLINE# #INDENT# raise romeo . EnvironmentalError ( ( 'Serious issue for %s' % name . lower ( ) ) ) #NEWLINE# #UNINDENT# return RomeoResource ( name , env ) #NEWLINE# #UNINDENT# key = [ i for i in self . entity . keys ( ) if ( i . upper ( ) == name . upper ( ) ) ] #NEWLINE# if ( not key ) : #NEWLINE# #INDENT# raise romeo . EnvironmentalError ( ( 'no such romeo key %s' % name . lower ( ) ) ) #NEWLINE# #UNINDENT# key = key . pop ( ) #NEWLINE# data = self . entity . get ( key ) #NEWLINE# if ( not self . isLeaf ) : #NEWLINE# #INDENT# self . data = data #NEWLINE# #UNINDENT# return self