#NEWLINE# def __getitem__( self , name ) : #NEWLINE# #INDENT# ' check contents dictionary to allow dict like access to service layers' #NEWLINE# if ( name in self . __getattribute__ ( 'contents' ) . keys ( ) ) : #NEWLINE# #INDENT# return self . __getattribute__ ( 'contents' ) [ name ] #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# raise KeyError ( ( 'No content named %s' % name ) )