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|i|if}ti||ƒdS(Ns%s %s(R+R R,RRtsystemR(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&RR.trcttimetsleeptPROCESS_CREATION_DELAY(R+R1RR&R0R3R2((Rt_remotess   iicCs7|o|id||ƒn|id||ƒdS(NsopenURL(%s,new-window)s openURL(%s)(RR+R6RR(R+RRR((RR€scCs|i|dƒdS(Ni(R+RR(R+R((RR†s(RRt__doc__R-R6RR(((RR/ms   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 --noraiseR9( RR0R+R R1R&RR.R2R3R4R5(R+R1RR&R0R3R2((RR6s   iicCs7|o|id||ƒn|id||ƒdS(Ns-w '%s's-n '%s'(RR+R6RR(R+RRR((RR›scCs|i|dƒdS(Ni(R+RR(R+R((RR¡s(RRR7R-R6RR(((RR8Š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 &( R1R&RR.R2R3R+RR R4R5(R+R1R&R2R3((RR6²s   icCs|id|ƒdS(Ns openURL '%s'(R+R6R(R+RRR((RR¿s(RRR7R-R6RR(((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+R@RARKRGRHR?RFRCR>RL((Rt_find_grail_rcÌs,      cCs6|iƒ}|pdSn|i|ƒ|iƒdS(Nii(R+RQRKtsendR1tclose(R+R1RK((RR6æs    iicCs1|o|id|ƒn|id|ƒdS(NsLOADNEW sLOAD (RR+R6R(R+RRR((RRîscCs|i|dƒdS(Ni(R+RR(R+R((RRôs(RRRQR6RR(((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(((RRTø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(((RRa9sitwinswindows-defaultsinternet-configtos2s netscape.exet os2netscapesstart netscape.exe %stBROWSERs%s '%%s'cCs&|iƒtjp|idƒdjS(Ns%siÿÿÿÿ(txR R tfind(Rh((Rtps(smozilla-firefoxsmozilla-firebirdR]R^(!R7Rtsyst__all__t ExceptionRR RR RRRRRR*R5RR/R8R:R=RTR RRatplatformRbt ImportErrorR"R#R&R tfilter(R&RTRaRRbRRRlR8R/R:R*RR RkRR=RRRR5RR((Rt?sŠ       #0&   "          !  $2