#NEWLINE# @ register . filter ( name = 'lookup' ) #NEWLINE# def lookup_filter( o , key ) : #NEWLINE# #INDENT# try : #NEWLINE# #INDENT# return o [ o ] #NEWLINE# #UNINDENT# except KeyError : #NEWLINE# #INDENT# return None