403Webshell
Server IP : 61.19.30.66  /  Your IP : 216.73.216.15
Web Server : Apache/2.2.22 (Ubuntu)
System : Linux klw 3.11.0-15-generic #25~precise1-Ubuntu SMP Thu Jan 30 17:39:31 UTC 2014 x86_64
User : www-data ( 33)
PHP Version : 5.3.10-1ubuntu3.48
Disable Function : pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,
MySQL : ON  |  cURL : OFF  |  WGET : ON  |  Perl : ON  |  Python : ON  |  Sudo : ON  |  Pkexec : OFF
Directory :  /usr/lib/python2.7/dist-packages/landscape/ui/controller/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /usr/lib/python2.7/dist-packages/landscape/ui/controller/configuration.pyc
ó
}9Rc@s‚ddlZddlmZddlmZmZddlmZddlm	Z	de
fd„ƒYZdefd	„ƒYZ
dS(
iÿÿÿÿN(tgettext(tNOT_MANAGEDtCANONICAL_MANAGED(tRegistrationProxy(t
StateErrortConfigControllerLockErrorcBseZRS((t__name__t
__module__(((sI/usr/lib/python2.7/dist-packages/landscape/ui/controller/configuration.pyRstConfigControllercBs\eZdZdZd„Zd„Zd„Zd„Zd„Zd„Z	d„Z
d	„ZRS(
sÅ
    L{ConfigContoller} defines actions to take against a configuration object,
    providing starting values from the file, allowing them to be changed
    transiently, reverted or committed.
    t
standalonecCsg|_||_t|_dS(N(t
_observerst_configurationtTruet_initialised(tselft
configuration((sI/usr/lib/python2.7/dist-packages/landscape/ui/controller/configuration.pyt__init__s		cCs.||jkr|j|St|j|ƒSdS(N(t__dict__tgetattrR(Rtname((sI/usr/lib/python2.7/dist-packages/landscape/ui/controller/configuration.pyt__getattr__scCsd|jkr"tj|||ƒS|tjkrDtj|||ƒSy$t|j||ƒ|jjƒWn!tk
r‹tj|||ƒSX|jjƒdS(NR
(Rtobjectt__setattr__RtsetattrRtmodifytAttributeError(RRtvalue((sI/usr/lib/python2.7/dist-packages/landscape/ui/controller/configuration.pyR#s
cCs
|jjƒS(s?
        Load the initial data from the configuration.
        (Rt	load_data(R((sI/usr/lib/python2.7/dist-packages/landscape/ui/controller/configuration.pytload2scCs6y|jjƒWntk
r1tjdƒnXdS(sU
        Revert settings to those the configuration object originally found.
        s@landscape-client-settings-ui reverted with no changes to revert.N(RtrevertRtloggingtinfo(R((sI/usr/lib/python2.7/dist-packages/landscape/ui/controller/configuration.pyR8s
cCsty|jjƒWntk
r1tjdƒnX|jjtkrZ|j|||ƒn|j||||ƒdS(s.Persist settings via the configuration object.sAlandscape-client-settings-ui committed with no changes to commit.N(	RtpersistRRRtmanagement_typeRtdisabletregister(Rt	on_notifyton_errort
on_succeedton_fail((sI/usr/lib/python2.7/dist-packages/landscape/ui/controller/configuration.pyR Cs
c	s¬‡fd†}‡fd†}td|d|d|d|ƒ}|jjtkrn|tdƒ|jjƒn|tdƒ|jjƒ|j|jjƒƒ|j	ƒdS(	sF
        Perform registration using the L{RegistrationProxy}.
        csˆdtdƒƒdS(NtactionsRegistering client failed(t_((tfail_method(sI/usr/lib/python2.7/dist-packages/landscape/ui/controller/configuration.pytregistration_fail_wrapperVscsˆdtdƒƒdS(NR(s!Registering client was successful(R)((tsucceed_method(sI/usr/lib/python2.7/dist-packages/landscape/ui/controller/configuration.pytregistration_succeed_wrapperYston_register_notifyton_register_errorton_register_succeedton_register_failsAttempting to register at %sN(
RRR!RR)thosted_landscape_hosttlocal_landscape_hostR#tget_config_filenametexit(Rt
notify_methodterror_methodR,R*R+R-tregistration((R,R*sI/usr/lib/python2.7/dist-packages/landscape/ui/controller/configuration.pyR#Ps	cs[‡fd†}‡fd†}td|d|ƒ}|tdƒƒ|jƒ|jƒdS(sH
        Disable landscape client via the L{RegistrationProxy}.
        csˆdtdƒƒdS(NR(sDisabling client failed(R)((R*(sI/usr/lib/python2.7/dist-packages/landscape/ui/controller/configuration.pytdisabling_fail_wrapperoscsˆdtdƒƒdS(NR(sDisabling client was successful(R)((R,(sI/usr/lib/python2.7/dist-packages/landscape/ui/controller/configuration.pytdisabling_succeed_wrapperrston_disable_succeedton_disable_fails'Attempting to disable landscape client.N(RR)R"R5(RR6R,R*R9R:R8((R*R,sI/usr/lib/python2.7/dist-packages/landscape/ui/controller/configuration.pyR"js	
(RRt__doc__tDEFAULT_DEDICATED_ACCOUNT_NAMERRRRRR R#R"(((sI/usr/lib/python2.7/dist-packages/landscape/ui/controller/configuration.pyRs						
	(RRR)tlandscape.ui.constantsRRt%landscape.ui.model.registration.proxyRt&landscape.ui.model.configuration.stateRt	ExceptionRRR(((sI/usr/lib/python2.7/dist-packages/landscape/ui/controller/configuration.pyt<module>s

Youez - 2016 - github.com/yon3zu
LinuXploit