#NEWLINE# def __init__( self , obj , speed_limit = None , size = None , name = None , chunk_size = '512K' ) : #NEWLINE# #INDENT# self . obj = obj #NEWLINE# self . chunk_size = sizeof_format . parse_size ( size ) #NEWLINE# self . speed_limiter = SpeedLimiter ( ( speed_limit or CONF . migrate . speed_limit ) ) #NEWLINE# if ( size is None ) : #NEWLINE# #INDENT# size = self . _get_size ( ) #NEWLINE# #UNINDENT# if ( name is None ) : #NEWLINE# #INDENT# name = self . _get_name ( ) #NEWLINE# #UNINDENT# self . view = ProgressView ( name = name , size = size )