Ñò +z2Wc @sddkZddkZddklZddklZddklZl Z l Z l Z l Z l Z lZlZlZlZlZlZlZlZlZlZlZddklZlZddklZlZdefd„ƒYZe a!e ƒa"e d „Z#d „Z$d Z%dS( iÿÿÿÿN(tDevice(tgetDeviceFactory(t_tlogt ConfDevicestgeneric_longinfo_dialogt getDeviceTypetgetRoottOLDSYSCONFDEVICEDIRtQETHtSYSCONFDEVICEDIRtupdateNetworkScriptst getCHAPConft getPAPConftIPSECtSYSCONFNETWORKt testFilenametunlinkt WVDIALCONF(tConfSMBt ConfShellVar(tGdtlisttgdtlist_propertiest DeviceListcBsTeZeeƒd„Zd„Zd„Zd„Zdd„Z d„Z d„Z RS(c CsÝddkl}tƒ|idt|ƒƒtƒ}tƒt}g}tidd|ƒt i i |ƒo t ƒ}n|p1tidd|ƒtƒt }t |ƒ}nxÊ|D]Â}tidd|ƒ|djoq¼n|||ƒ}d}d}|idƒo|d}n|idƒo|d}n|id ƒo|d d jo t}qpn~|d joq¼n| p |d jp|td ƒjo[ddkl} | iƒ} x<| D]$} | i|jo| i}PqÒqÒWt|ƒ}n|i|ƒ} | o'| ƒ} | i|ƒ|i| ƒq¼tidd|ƒtƒ}|i|ƒ|i|ƒq¼W|iƒ|iƒh}xÓ|D]Ë}tidd|i ƒ}||i jo|||i %s sNicknames changed()tnetconfpkg.NCDeviceRR t __delslice__tlenRRR RtostpathtisdirRRtNonethas_keyR Rt netconfpkgR tgetHardwareListtNametTypeRtgetDeviceClasstloadtappendRtcommitt setunmodifiedtretsubtDeviceIdtnetconfpkg.NCProfileListt NCProfileListtgetProfileListt ActiveDevicestindextkeystitemsR(tselfRtdftdevdirtdevicestdevtconftmtypetdeviceR thwlistthwtdevclasstnewdevtdtchdevt newDeviceIdR*t profilelisttproftpoststn((s;/usr/share/system-config-network/netconfpkg/NCDeviceList.pyR/$s”      (                cCs=tƒ}|i|ƒ}|o|ƒ}|i|ƒn|S(N(RR.R0(R=RCR>RGRH((s;/usr/share/system-config-network/netconfpkg/NCDeviceList.pyt addDeviceTypes   cCsdS(N((R=((s;/usr/share/system-config-network/netconfpkg/NCDeviceList.pyttest™scCs t|iƒS(N(treprt__dict__(R=((s;/usr/share/system-config-network/netconfpkg/NCDeviceList.pyt__repr__œscCsr|djo|ii}nd}xH|D]@}t|tƒo*||id||i|ifƒ7}q*q*W|S(s&returns a string in gdt representationRs%s.%s.%sN(R(t __class__t__name__t isinstanceRttostrR-R5(R=t prefix_stringtmstrtvalue((s;/usr/share/system-config-network/netconfpkg/NCDeviceList.pyRYŸs   cCsìt|ƒdjodS|ddjo |d=ndSxy|D]q}|i|djoW|i|djo*|i|ƒtidd|dƒPn|i|d|ƒdSq?W|i|dƒ}|d|_|i|d|ƒdS(NiiRsDeleting device %si(R$R5R-tpopRtfromstrRQ(R=tvalsR\RA((s;/usr/share/system-config-network/netconfpkg/NCDeviceList.pyR^¬s"    cCsnddkl}ddkl}|iƒtitƒtƒ}t|ƒdjod|d(&tos.pathR%R3R"Rtnetconfpkg.NCDeviceFactoryRtnetconfpkg.NC_functionsRRRRRRRR R R R R RRRRRtnetconfpkg.confRRtnetconfpkg.gdtRRRR(R~RRR†t __author__(((s;/usr/share/system-config-network/netconfpkg/NCDeviceList.pyts  pÿ