#NEWLINE# def getOperationByName( self , name ) : #NEWLINE# #INDENT# 'Return a named content item.' #NEWLINE# for item in self . operations : #NEWLINE# #INDENT# if ( item . name == name ) : #NEWLINE# #INDENT# return item #NEWLINE# #UNINDENT# #UNINDENT# raise KeyError ( ( 'No operation named %s' % name ) )