ó J¡Vc@sÒddlZddlZddlZddlZddlTddlmZmZddlm Z m Z ddl Tddl TdZ d„Zd„Zd „Zd „Zd d „Zd „Zddddd„ZdS(iÿÿÿÿNi(t*(tutilsttui(tpasswordt validations+http://hplip.sourceforge.net/hplip_web.confc CsÜd}idd6dd6dd6dd6}itjdtjƒd6tjdtjƒd6tjd tjƒd6tjd tjƒd6}tjd tƒ}|rÒtjd ||fd ddddtƒ\}}|dkrÒxñ|j ƒD]à}xÁ|D]¹}||krõ|d7}||j |ƒrG||j |ƒj dƒ||tERROR_FAILED_TO_DOWNLOAD_FILERM( RNR R#RARBtsourceRORPRTRU((sb/builds/ul11u3sru-gate/components/hplip/build/prototype/i386/usr/share/hplip/base/smart_install.pytdownload©s(     tqt4cCsPtƒ}|s,tjdƒtttƒfSt}ttƒ}tƒ\}} tj|ƒ} y¼|t krª|dkrÍyddl m } Wn(t k rµtj d| |fƒq§X| d| |fƒqtjƒsútj dtƒtttƒfS|r|r|j| dtƒnJydd lm} Wnt k rPtj d ƒnX| d| dtƒ}tjd ƒ|jƒtƒrš|jd |ƒq|jd ƒnmtj d| ƒtjdddgdƒ\} }| sï|dkrt}ttƒ}nt||ƒ\}}}}t}|}|tkr@t}nZ|tt fkrŽtj!dƒ\} }| su| r…t"j#dƒqšt}n t|ƒ}|rtj$d|ƒ\}}|sÈtƒrûtj dƒtj d|ƒt}ttƒ}qtj%d ƒt}d}nWn+t&k rEtj dƒt"j#dƒnX||fS(NsNo Smart Install Device foundtqt3iÿÿÿÿ(tFailureMessageUIsˆSmart Install is enabled in %s device(s). Auto Smart Install disable is not supported in QT3. Please refer link '%s' to disable manuallys‰Smart Install is enabled in %s device(s). Auto Smart Install disable is not supported in QT3. Please refer link '%s' to disable manuallys+%s requires GUI support . Is Qt4 installed?R(tQueuesDiagnoses,Unable to load Qt4 support. Is it installed?sStarting GUI loop...sLFailed to disable smart install. Please refer link '%s' for more informations$Smart install disabled successfully.s*Smart Install is enabled in %s device(s). sADo you want to download and disable smart install?(y=yes*, n=no):tytns:Digital Sign verification failed, Do you want to continue?issh %ss!Failed to disable smart install .s*Please refer link '%s' to disable manuallys User exit('R5RR,tERROR_NO_SI_DEVICERItERROR_FAILED_TO_DISABLE_SIRCRtlist_to_stringtGUI_MODEt ui.setupformR\t ImportErrorR+tcanEnterGUIMode4t__mod__tinittQUEUES_SMART_INSTALL_ENABLEDtui4.queuesconfR]Rtexec_R7t showMessagetshowSuccessMessageRt enter_choiceRYRt ERROR_SUCCESSRtERROR_UNABLE_TO_RECV_KEYStERROR_DIGITAL_SIGN_NOT_FOUNDt enter_yes_notsystexitRtinfotKeyboardInterrupt(RNt ui_toolkittdialogtappR tdev_listt return_valtreturn_error_strR?R@t printer_namesR\R]tresponsetvalueR#RORPRUt disable_siR$((sb/builds/ul11u3sru-gate/components/hplip/build/prototype/i386/usr/share/hplip/base/smart_install.pytdisableÆsz            !         (Rstos.pathtosRtgRRRtbaseRRt base.codest base.stringsR<R'R5R7RCRMRYRR(((sb/builds/ul11u3sru-gate/components/hplip/build/prototype/i386/usr/share/hplip/base/smart_install.pyts        ( (