#NEWLINE# def __getitem__( self , key ) : #NEWLINE# #INDENT# res = self . mdb . get ( key ) #NEWLINE# if ( not res ) : #NEWLINE# #INDENT# raise KeyError ( key ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# if ( len ( res ) == 1 ) : #NEWLINE# #INDENT# return res [ 0 ] [ 'eptid' ] #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# raise CorruptDatabase ( 'Found more than one EPTID document' )