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/NCPluginDevices.pyc
mò
[Tc@s‚dZdkZdklZdklZdklZdkl	Z	l
Z
lZlZdk
lZdkZdfd„ƒYZdS(	sTUI Ethernet Interface ModuleN(s
getDeviceList(sgetProfileList(sgetHardwareList(sETHERNETsISDNsMODEMsQETH(sgetDeviceFactorytNCPluginDevicesTuicBsDtZdZd„Zd„Zd„Zd„Zd„Zd„ZRS(sTUI Device ListcCs||_d|_dS(s
        The constructor
        @screen A snack screen instance
        @devicelist A NCDeviceList
        @modem The modem device. If none given, the first
               modem in devicelist will be used.
               If none are there, one will be added.
        N(tplisttselftNonetmscreen(RR((tB/usr/share/system-config-network/netconfpkg/tui/NCPluginDevices.pyt__init__s	cCs6tidddƒ|_d}|iid}|djo
d}nxÑtƒD]Æ}t
|dƒp|iƒoqOn|d7}xtƒD]U}|i|ijo<|io2|iid|i|i|if| |ƒPqqW|iid|i|i|if| |ƒqOW|iitdƒd	ƒd	S(
s+
        Build the list of devices
        it
returnExitiiit	getDialogs%s (%s) - %ss<New Device>N(tsnacktListboxRtlitlRtwidthtlet
getDeviceListtdevthasattrRtgetHardwareListthwtNametDevicetDescriptiontappendtDeviceIdtTypet_R(RRRRR((RtsetStates(




&	&c
CsÛtidtdƒƒ}ti|tdƒdftdƒdffƒ}tidddd	d
ƒ}|i	tdƒt
ƒtiƒd}|d
jp
|djo|i	tdƒtƒn-|i	tdƒtƒ|i	tdƒtƒti|tdƒd
dƒ}
|
i|ddƒ|
i|dd
ƒ|
i|ddƒ|
iƒ}|iƒ|i|ƒdjok|iƒ}tƒ}d}|i|ƒ}t ƒ}	|pdSn|ƒ}|o|	i	|ƒ|Sq×ndS(sT
        Displays the main screen
        @screen The snack screen instance
        is%Which device type do you want to add?tAddtaddtCanceltcanceliR
RitEthernetits390ts390xtQETHtModemtISDNsNetwork ConfigurationiiiiÿÿÿÿiþÿÿÿN("R	tTextboxReflowedRttt	ButtonBarRtbbR
RRtETHERNETtostunametmachineR#tMODEMR%tGridFormtgRtruntrest	popWindowt
buttonPressedtcurrentttodotgetDeviceFactorytdfRRtgetDeviceClasstdevclassRtdevlist(
RRR:R6R2RR-R)R8R;R0RR'((Rt	newDevice9s:0
			
cCsdS(sQ
        Extracts info from the screen, and puts it into a device object
        N((R((RtprocessInfo^scCsti|tdƒddƒ}ti|tdƒdftdƒdffƒ}|i|i	ddƒ|i|dd	d
dƒ|i
ƒ}|iƒ|i
|ƒdjo
d}nJ|i
|ƒdjo
d}n*|i	iƒ}|p|i|ƒ}n|S(NsSelect A DeviceiitSavetsaveRRiitgrowxiÿÿÿÿ(R	R/RRR0R(R)RRRR1R2R3R4tretRR5R<(RRR0R)R2RA((RtselectDeviceds0


cCs||_tƒ}|iƒxñtoé|iƒo|iƒn|i|ƒ}|djotSn*|djoqn|djot
Sn|iƒ}|i
|ƒoM|iƒ|iƒ|ii|i|iiƒidtƒ|iiƒq|iƒ|iƒqWdS(sB
        Show and run the screen, save files if necesarry
        iÿÿÿÿiþÿÿÿtstateN(RRRR;RtTruetmodifiedRBRRtFalseRtdialogtrunIttcommitRtactivateDeviceRtgetActiveProfiletProfileNametrollback(RRRR;RG((RRHvs2		








(	t__name__t
__module__t__doc__RRR<R=RBRH(((RRs	
		%		(RPR	tnetconfpkg.NCDeviceListRtnetconfpkg.NCProfileListtgetProfileListtnetconfpkg.NCHardwareListRtnetconfpkg.NC_functionsR*R%R.R#tnetconfpkg.NCDeviceFactoryR7R+R(RR	RR#RR*R7RSR.R+R%((Rt?s	



	

Anon7 - 2021