#NEWLINE# def set( self , varbindlist ) : #NEWLINE# #INDENT# '\nset(varbindlist)\nWhere varbindlist is a VarBindList containing VarBind objects.\n\n        ' #NEWLINE# comm = self . sessiondata . get_community ( RW ) #NEWLINE# if ( not comm ) : #NEWLINE# #INDENT# raise SNMPBadCommunity ( 'No community!' ) #NEWLINE# #UNINDENT# mo = CommunityBasedMessage ( comm , SetRequestPDU ( ) , self . sessiondata . version ) #NEWLINE# for vb in varbindlist : #NEWLINE# #INDENT# mo . add_varbind ( vb ) #NEWLINE# #UNINDENT# resp = self . _send_and_receive ( mo ) #NEWLINE# if resp . pdu . error_status : #NEWLINE# #INDENT# raise EXCEPTION_MAP [ resp . pdu . error_status ] ( resp . pdu . error_index ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# return resp . pdu . varbinds