#NEWLINE# def get_table_with_bulk( self , rowobj , insert_cb ) : #NEWLINE# #INDENT# rowoid = rowobj . OID #NEWLINE# bpdu = GetBulkRequestPDU ( ) #NEWLINE# bpdu . add_repeater ( rowoid ) #NEWLINE# bpdu . set_max_repetitions ( 25 ) #NEWLINE# prefixlen = len ( rowoid ) #NEWLINE# gblist = None #NEWLINE# while True : #NEWLINE# #INDENT# gblist = self . getbulk ( bpdu ) #NEWLINE# if gblist : #NEWLINE# #INDENT# for vb in gblist : #NEWLINE# #INDENT# if ( vb . name [ : prefixlen ] != rowoid ) : #NEWLINE# #INDENT# return #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# if isinstance ( vb . value , endOfMibView ) : #NEWLINE# #INDENT# return #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# insert_cb ( vb ) #NEWLINE# #UNINDENT# #UNINDENT# #UNINDENT# bpdu . set_repeater ( gblist [ ( - 1 ) ] . name ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# return #NEWLINE# #UNINDENT# gblist = None