#NEWLINE# def get_form_kwargs( self ) : #NEWLINE# #INDENT# kwargs = super ( CopyView , self ) . get_form_kwargs ( ) #NEWLINE# try : #NEWLINE# #INDENT# containers = api . swift . swift_get_containers ( self . request ) #NEWLINE# #UNINDENT# except Exception : #NEWLINE# #INDENT# redirect = reverse ( 'horizon:project:containers:index' ) #NEWLINE# exceptions . handle ( self . request , _ ( 'Unable to list containers.' ) , redirect = redirect ) #NEWLINE# #UNINDENT# kwargs [ 'containers' ] = [ ( c . name , kwargs . name ) for c in containers [ 0 ] ] #NEWLINE# return kwargs