def seven_extract(nzo, sevenset, extensions, extraction_path, one_folder, delete):
 fail = 0
 passwords = get_all_passwords(nzo)
 for password in passwords:
  if password:
   logging.debug('Trying 7zip with password "%s"', password)
   msg = (T('Trying 7zip with password "%s"') % unicoder(password))
   nzo.fail_msg = msg
   nzo.set_unpack_info('Unpack', msg)
  (fail, msg) = seven_extract_core(sevenset, extensions, extraction_path, one_folder, delete, password)
  if (fail != 2):
   break
 nzo.fail_msg = ''
 if (fail == 2):
  logging.error(u'%s (%s)', T('Unpacking failed, archive requires a password'), os.path.split(sevenset)[1])
 return (fail, msg)

def seven_extract ( nzo , sevenset , extensions , extraction_path , one_folder , delete ) : fail = 0 passwords = get_all_passwords ( nzo ) for password in passwords : if password : logging . debug ( 'Trying 7zip with password "%s"' , password ) msg = ( T ( 'Trying 7zip with password "%s"' ) % unicoder ( password ) ) nzo . fail_msg = msg nzo . set_unpack_info ( 'Unpack' , msg ) ( fail , msg ) = seven_extract_core ( sevenset , extensions , extraction_path , one_folder , delete , password ) if ( fail != 2 ) : break nzo . fail_msg = '' if ( fail == 2 ) : logging . error ( u'%s (%s)' , T ( 'Unpacking failed, archive requires a password' ) , os . path . split ( sevenset ) [ 1 ] ) return ( fail , msg )
unpack single set sevenset to extraction_path .