#NEWLINE# def check_job_binary( data , **kwargs ) : #NEWLINE# #INDENT# job_binary_url = data . get ( 'url' , None ) #NEWLINE# extra = data . get ( 'extra' , { #NEWLINE# #INDENT# #NEWLINE# #UNINDENT# } ) #NEWLINE# if kwargs : #NEWLINE# #INDENT# if job_binary_url . startswith ( 'internal-db' ) : #NEWLINE# #INDENT# internal_uid = job_binary_url . replace ( 'internal-db://' , '' ) #NEWLINE# b . check_job_binary_internal_exists ( internal_uid ) #NEWLINE# #UNINDENT# if job_binary_url . startswith ( su . SWIFT_INTERNAL_PREFIX ) : #NEWLINE# #INDENT# if ( not kwargs . get ( 'job_binary_id' , None ) ) : #NEWLINE# #INDENT# if ( ( ( not extra . get ( 'user' ) ) or ( not extra . get ( 'password' ) ) ) and ( not CONF . use_domain_for_proxy_users ) ) : #NEWLINE# #INDENT# raise e . BadJobBinaryException ( )