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/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /usr/lib/python2.7/dist-packages/landscape/patch.pyc
ó
}9Rc@shddlZdefd„ƒYZdefd„ƒYZdefd„ƒYZdefd	„ƒYZdS(
iÿÿÿÿNtUpgraderConflictcBseZdZRS(s9Two upgraders with the same version have been registered.(t__name__t
__module__t__doc__(((s3/usr/lib/python2.7/dist-packages/landscape/patch.pyRstUpgradeManagerBasecBs2eZdZd„Zd„Zd„Zd„ZRS(sA simple upgrade system.cCs
i|_dS(N(t
_upgraders(tself((s3/usr/lib/python2.7/dist-packages/landscape/patch.pyt__init__scCsC||jkr2td||j||fƒ‚n||j|<dS(sN
        @param version: The version number that this upgrader is
            upgrading the database to. This defines the order that
            upgraders are run.
        @param function: The function to call when applying
            upgraders. It must take a single object, the database that is
            being upgraded.
        s-%s is already registered as %s; not adding %sN(RR(Rtversiontfunction((s3/usr/lib/python2.7/dist-packages/landscape/patch.pytregister_upgraders	cCs#|jjƒ}|rt|ƒSdS(sp
        Get the 'current' version of any database that this
        UpgradeManager will be applied to.
        i(Rtkeystmax(RR((s3/usr/lib/python2.7/dist-packages/landscape/patch.pytget_versions
cs‡‡fd†}|S(sÍ
        A decorator for specifying that a function is an upgrader for
        this upgrade manager.

        @param version: The version number that the function will be
            upgrading to.
        csˆjˆ|ƒ|S(N(R
(R	(RR(s3/usr/lib/python2.7/dist-packages/landscape/patch.pytinner/s((RRR((RRs3/usr/lib/python2.7/dist-packages/landscape/patch.pytupgrader's(RRRRR
R
R(((s3/usr/lib/python2.7/dist-packages/landscape/patch.pyRs
			
tUpgradeManagercBseZd„Zd„ZRS(cCs|jdƒs"|jddƒnxft|jjƒƒD]O\}}||jdƒkr8|jd|ƒ||ƒtjd|ƒq8q8WdS(s‘Bring the database up-to-date.

        @param persist: The database to upgrade. It will be passed to
            all upgrade functions.
        ssystem-versionisSuccessfully applied patch %sN(thastsettsortedRtitemstgettloggingtinfo(RtpersistRR((s3/usr/lib/python2.7/dist-packages/landscape/patch.pytapply7s"
cCs|jd|jƒƒdS(sk
        Mark the database as being up-to-date; use this when
        initializing a new database.
        ssystem-versionN(RR
(RR((s3/usr/lib/python2.7/dist-packages/landscape/patch.pyt
initializeEs(RRRR(((s3/usr/lib/python2.7/dist-packages/landscape/patch.pyR5s	tSQLiteUpgradeManagercBs;eZdZd„Zd„Zd„Zd„Zd„ZRS(s$An upgrade manager backed by sqlite.cCs:|jdƒ|jƒ}tg|D]}|d^q#ƒS(NsSELECT version FROM patchi(texecutetfetchallR(Rtcursortresulttrow((s3/usr/lib/python2.7/dist-packages/landscape/patch.pytget_database_versionsPs
cCs+|jdƒ|jƒd}|r'|SdS(NsSELECT MAX(version) FROM patchi(Rtfetchone(RRR((s3/usr/lib/python2.7/dist-packages/landscape/patch.pytget_database_versionUs

cCsX|j|ƒ}xBt|jjƒƒD]+\}}||kr%|j||ƒq%q%WdS(sBring the database up-to-date.N(R!RRRt	apply_one(RRtversionsRR((s3/usr/lib/python2.7/dist-packages/landscape/patch.pyR\s"cCs.|j|}||ƒ|jd|fƒdS(NsINSERT INTO patch VALUES (?)(RR(RRRR((s3/usr/lib/python2.7/dist-packages/landscape/patch.pyR$cs

cCsJ|jdƒx6t|jjƒƒD]\}}|jd|fƒq#WdS(sr
        Mark the database as being up-to-date; use this when
        initializing a new SQLite database.
        s$CREATE TABLE patch (version INTEGER)sINSERT INTO patch VALUES (?)N(RRRR(RRRR((s3/usr/lib/python2.7/dist-packages/landscape/patch.pyRhs
"(RRRR!R#RR$R(((s3/usr/lib/python2.7/dist-packages/landscape/patch.pyRMs				(Rt	ExceptionRtobjectRRR(((s3/usr/lib/python2.7/dist-packages/landscape/patch.pyt<module>s-

Youez - 2016 - github.com/yon3zu
LinuXploit