#NEWLINE# def getChild( self , path , request ) : #NEWLINE# #INDENT# fnp = self . child ( path ) #NEWLINE# if ( not fnp . exists ( ) ) : #NEWLINE# #INDENT# return static . File . childNotFound #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# if fnp . isdir ( ) : #NEWLINE# #INDENT# return CGIDirectory ( fnp . path ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# return CGIScript ( request . path ) #NEWLINE# #UNINDENT# #UNINDENT# return resource . NoResource ( )