#NEWLINE# def get_link_url( self , datum ) : #NEWLINE# #INDENT# backup_id = datum . id #NEWLINE# backup_name = datum . name #NEWLINE# volume_id = getattr ( datum , 'volume_id' , None ) #NEWLINE# url = reverse ( 'horizon:project:volumes:backups:restore' , args = ( backup_id , ) ) #NEWLINE# url += ( '?%s' % http . urlencode ( { #NEWLINE# #INDENT# 'backup_name' : backup_name , #NEWLINE# 'volume_id' : volume_id , #NEWLINE# #UNINDENT# } ) ) #NEWLINE# return url