KGRKJGETMRETU895U-589TY5MIGM5JGB5SDFESFREWTGR54TY
Server : Apache/2.2.17 (Unix) mod_ssl/2.2.17 OpenSSL/0.9.8e-fips-rhel5 DAV/2 PHP/5.2.17
System : Linux localhost 2.6.18-419.el5 #1 SMP Fri Feb 24 22:47:42 UTC 2017 x86_64
User : nobody ( 99)
PHP Version : 5.2.17
Disable Function : NONE
Directory :  /usr/share/system-config-network/netconfpkg/tui/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Current File : //usr/share/system-config-network/netconfpkg/tui/NCTcpIp.pyo
mň
[Tc@s+dkTdklZdfd„ƒYZdS((t*(sethtoolt
NCTcpIpDialogcBs8tZd„Zdd„Zd„Zd„Zd„ZRS(NcCsv||_tddƒ|_tddƒ|_tdƒ|_tddƒ|_tddƒ|_tddƒ|_	dS(s
        The constructor
        @screen A snack screen instance
        @devicelist A NCDeviceList
        @dev The devernet device. If none given, the first
             devernetdevice in devicelist will be used.
             If none are there, one will be added.
        itN(
tdevtselftEntrytnamethwdevtCheckboxtdyniptstatiptnetmasktgw(RR((t:/usr/share/system-config-network/netconfpkg/tui/NCTcpIp.pyt__init__s	cCs|p
|i}n|o÷|io|ii|iƒn|io|ii|iƒn|ioDti	|iƒ}|djp
|djo|iidƒqŤn|i
o|ii|i
ƒn|io|ii|iƒn|io|ii|iƒqndS(sŸ
        Set the default values of the fields
        according to the given device
        @dev The NCDevice (type devernet) to use as default values
        tdhcptbootpRN(RRtDeviceIdRtsettDeviceRt	BootPrototstringtlowertbpR	tsetValuetIPR
tNetmaskRtGatewayR(RRR((R
tsetStates$






cCsW|iiƒo
t}nt}x0|i|i|ifD]}|i
t|ƒq9WdS(sh
        Set the static IP field to enabled/disabled
        determined by the dynamic IP field
        N(RR	tselectedt	FLAGS_SETtstatetFLAGS_RESETR
RRtitsetFlagst
FLAG_DISABLED(RR!R((R
tuseDynamicCheckBox1s
cCsú|iiƒ|i_|iiƒ|i_|iiƒo4d|i_d|i_
d|i_d|i_nL|i
iƒ|i_
|iiƒ|i_|iiƒ|i_d|i_yti|iiƒ}Wntj
o	}nX||i_dS(sQ
        Extracts info from the screen, and puts it into a device object
        RN(RRtvalueRRRRR	RtNoneRRRR
RRtethtoolt
get_hwaddrthwaddrtIOErrorterrtHardwareAddress(RR+R)((R
tprocessInfo>s"cCsŘ||_tddƒ}tddƒ}|ittdƒƒddddƒ|ittdƒƒddddƒ|ittdƒƒddddƒ|ittd	ƒƒdd
ddƒ|ittdƒƒddddƒ|ittd
ƒƒddddƒ|i|idddƒ|i|i	dddƒ|i|i
dddddƒ|i|idd
dƒ|i|idddƒ|i|i
dddƒ|i
i|iƒt|itdƒdftdƒdffƒ}|i|iƒt|tdƒdd
ƒ}|i|dddddƒ|i|dddƒ|i|ddddƒ|iƒxm|iƒ}|i|ƒdjo|iƒtSPqg|i|ƒdjo|iƒ|iƒtSPqgqgWdS(sB
        Show and run the screen, save files if necesarry
        iiitNameit
anchorLeftRsUse DHCPs	Static IPiRisDefault gateway IPitOktoktCanceltcancelsDevernet ConfigurationtgrowxN(iiii(iiii(iiii(iiii(iiii(iiii(iiii(iiii(tscreenRtGridtg1tg2tsetFieldtLabelt_RRR	R
RRtsetCallbackR$t	ButtonBartbbRRtGridFormttltaddtruntrest
buttonPressedt	popWindowtFalseR-tTrue(RR5R8R7RCR>R@((R
trunItUsH	%%%%%%0



(t__name__t
__module__RR&RR$R-RH(((R
Rs
		
	N(tsnacktrhplR'R(R'R((R
t?s


Anon7 - 2021