#NEWLINE# def __setattr__( self , key , value ) : #NEWLINE# #INDENT# '\n        Sets the value to the given key if it is one of the specified keys.\n        Sets the given key on the _document to the given value otherwise.\n        ' #NEWLINE# keys = { 'collection' , 'schema' , 'allow_unknown' , '_document' , '_errors' } #NEWLINE# if ( key in keys ) : #NEWLINE# #INDENT# object . __setattr__ ( self , key , value ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# self . _document [ key ] = value