#NEWLINE# def handle( self , * args , **options ) : #NEWLINE# #INDENT# if ( len ( self ) == 0 ) : #NEWLINE# #INDENT# raise CommandError ( 'Please provide at least one addon id to sign. If you want to sign them all, use the "process_addons --task sign_addons" management command.' ) #NEWLINE# #UNINDENT# full_server = ( options . get ( 'signing_server' ) or settings . SIGNING_SERVER ) #NEWLINE# prelim_server = ( options . get ( 'preliminary_signing_server' ) or settings . PRELIMINARY_SIGNING_SERVER ) #NEWLINE# addon_ids = [ int ( addon_id ) for addon_id in args ] #NEWLINE# with override_settings ( SIGNING_SERVER = full_server , PRELIMINARY_SIGNING_SERVER = prelim_server ) : #NEWLINE# #INDENT# sign_addons ( addon_ids , force = options [ 'force' ] , reason = options [ 'reason' ] )