#NEWLINE# def _update_img_link( self ) : #NEWLINE# #INDENT# self . wplinks . clear ( ) #NEWLINE# for i in self . __images : #NEWLINE# #INDENT# metadata = self . _get_metadata ( i ) #NEWLINE# has_wp = i . get ( 'wp' , False ) #NEWLINE# _logger . debug ( 'handling %s, rooturl=%s, imgurlbase=%s, has_wp=%s, resolution=%s, act_market=%s' , has_wp [ 'url' ] , self . base , i [ 'urlbase' ] , has_wp , self . resolution , self . act_market ) #NEWLINE# wplink = self . high_resolution ( ) . getPicUrl ( self . base , i [ 'urlbase' ] , i [ 'url' ] , has_wp , self . resolution ) #NEWLINE# collections = list ( ) #NEWLINE# for collector_name in self . collect : #NEWLINE# #INDENT# asset = AssetCollector . get ( collector_name ) . collect ( self . base , i ) #NEWLINE# if asset : #NEWLINE# #INDENT# collections += asset #NEWLINE# #UNINDENT# #UNINDENT# if wplink : #NEWLINE# #INDENT# self . wplinks . append ( ( ( wplink + tuple ( collections ) ) , metadata ) )