mò %U²Ic@s|dZdkZdkZddddgZdefd„ƒYZhZgZdd„Z dd„Z d d d „Z d „Z d „Z d„ZdZdfd„ƒYZdfd„ƒYZdfd„ƒYZdfd„ƒYZdfd„ƒYZdfd„ƒYZeii dƒpeii dƒo×ddd gZeii dƒoyedƒoe dded!ƒƒnedƒoe dded"ƒƒned ƒoe d ded#ƒƒqÇneii dƒo%d$d%d&d'd(d)d*d+geZx5d=D]-Zeeƒoe edeeƒƒqqWed,ƒoe d,ded-ƒƒned$ƒoe d$ded$ƒƒned%ƒoe d%ded.ƒƒned*ƒp ed/ƒoe d*eeƒƒned+ƒoe d+edƒqÿqnd0fd1„ƒYZeid2 d3jod)d4gZe d4eƒny dkZWnej onXd5gZe d5eƒeid2 d6jo0ed7ƒo#d8gZe d8ded9ƒƒnd:eijo$eid:ieiƒed d +nxbeD]ZZeiƒejoAeeiƒƒo*e eiƒded;eiƒƒƒqYqÿqÿWdZ[e d<„eƒZdS(>s?Interfaces for launching and remotely controlling Web browsers.NtErrortopentgettregistercBstZRS(N(t__name__t __module__(((t'/data/zmath/lib/python2.4/webbrowser.pyRscCs||gt|iƒReturn True if cmd can be found on the executable search path.tPATHN( RtenvironRRtFalsetsplittpathseptdtjointcmdtexetisfiletTrue(R&R'R$R((Rt _iscommandPs iRcBs)tZd„Zddd„Zd„ZRS(NcCs:|iddƒ\|_|_tii|iƒ|_dS(Ni( R&R"R tselfR targsRRR(R+R&((Rt__init__`siicCs?d|jpt‚d|i|if}ti||ƒdS(Nt's%s %s(RtAssertionErrorR+R R,RRtsystem(R+RRRR((RRdscCs|i|ƒdS(N(R+RR(R+R((RRis(RRR-RR(((RR_s tNetscapecBs8tZdZd„Zd„Zddd„Zd„ZRS(s%Launcher class for Netscape browsers.cCs"||_tii|ƒ|_dS(N(R R+RRR(R+R ((RR-os cCsxd|}d|i||f}ti|ƒ}|o=dk }tid|iƒ|i t ƒti|ƒ}n| S(Ns-noraises-raises"%s %s -remote '%s' >/dev/null 2>&1s%s &(s-noraises-raise( Rt raise_optR+R tactionR&RR0trcttimetsleeptPROCESS_CREATION_DELAY(R+R3RR&R2R5R4((Rt_remotess   iicCs7|o|id||ƒn|id||ƒdS(NsopenURL(%s,new-window)s openURL(%s)(RR+R8RR(R+RRR((RR€scCs|i|dƒdS(Ni(R+RR(R+R((RR†s(RRt__doc__R-R8RR(((RR1ms   tGaleoncBs8tZdZd„Zd„Zddd„Zd„ZRS(s#Launcher class for Galeon browsers.cCs"||_tii|ƒ|_dS(N(R R+RRR(R+R ((RR-Œs cCsxd|}d|i||f}ti|ƒ}|o=dk }tid|iƒ|i t ƒti|ƒ}n| S(Ns --noraisets%s %s %s >/dev/null 2>&1s%s >/dev/null 2>&1 &(s --noraiseR;( RR2R+R R3R&RR0R4R5R6R7(R+R3RR&R2R5R4((RR8s   iicCs7|o|id||ƒn|id||ƒdS(Ns-w '%s's-n '%s'(RR+R8RR(R+RRR((RR›scCs|i|dƒdS(Ni(R+RR(R+R((RR¡s(RRR9R-R8RR(((RR:Šs   t KonquerorcBs5tZdZd„Zd„Zddd„ZeZRS(sÇController for the KDE File Manager (kfm, or Konqueror). See http://developer.kde.org/documentation/other/kfmclient.html for more information on the Konqueror remote-control interface. cCs5tdƒod|_|_nd|_|_dS(Nt konquerortkfm(R*R+R R(R+((RR-¬s cCsŠd|}ti|ƒ}|oedk}|idjoti|idƒnti|idƒ|i t ƒti|ƒ}n| S(Nskfmclient %s >/dev/null 2>&1R=s --silent &s -d &( R3R&RR0R4R5R+RR R6R7(R+R3R&R4R5((RR8²s   icCs)d|jpt‚|id|ƒdS(NR.s openURL '%s'(RR/R+R8(R+RRR((RR¿s(RRR9R-R8RR(((RR<¥s   tGrailcBs2tZd„Zd„Zddd„Zd„ZRS(Nc Csdk} dk}dk}dk}tii|iƒdƒ}|i ti ƒƒd}tii||dƒ}| i|ƒ}|pdSn|i|i|iƒ}xc|D][} y|i| ƒWn=|ij o.yti| ƒWq tj oq Xq®X|Sq®WdS(Ns .grail-unixis-*(tglobtpwdtsocketttempfileRRR%t gettempdirttempdirtgetpwuidtgetuidtusertfilenametmaybesR tAF_UNIXt SOCK_STREAMtstfntconnectterrortunlinktIOError( R+RBRCRMRIRJRARHRER@RN((Rt_find_grail_rcÌs,      cCs6|iƒ}|pdSn|i|ƒ|iƒdS(Nii(R+RSRMtsendR3tclose(R+R3RM((RR8æs    iicCs1|o|id|ƒn|id|ƒdS(NsLOADNEW sLOAD (RR+R8R(R+RRR((RRîscCs|i|dƒdS(Ni(R+RR(R+R((RRôs(RRRSR8RR(((RR?Ès  tWindowsDefaultcBs tZddd„Zd„ZRS(NiicCsti|ƒdS(N(Rt startfileR(R+RRR((RRùscCs|i|ƒdS(N(R+RR(R+R((RRüs(RRRR(((RRVøstTERMtDISPLAYtlinkstlynxtw3ms links '%s's lynx '%s'sw3m '%s'tgaleont skipstonesmozilla-firefoxsmozilla-firebirdtmozillatnetscapeR>tgrailtmosaicsmosaic '%s' >/dev/null &sskipstone '%s' >/dev/null &R=tInternetConfigcBs tZddd„Zd„ZRS(NiicCsti|ƒdS(N(tict launchurlR(R+RRR((RR:scCs|i|ƒdS(N(R+RR(R+R((RR=s(RRRR(((RRc9sitwinswindows-defaultsinternet-configtos2s netscape.exet os2netscapesstart netscape.exe %stBROWSERs%s '%%s'cCs&|iƒtjp|idƒdjS(Ns%siÿÿÿÿ(txR R tfind(Rj((Rtps(smozilla-firefoxsmozilla-firebirdR_R`(!R9Rtsyst__all__t ExceptionRR RR RRRRRR*R7RR1R:R<R?RVR RRctplatformRdt ImportErrorR"R#R&R tfilter(R&RVRcRRdRRRnR:R1R<R*RR RmRR?RRRR7RR((Rt?sŠ       #0&   "          !  $2