| 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 : |
ó
}9Rc @ sh d d l Z d e f d „ ƒ YZ d e f d „ ƒ YZ d e f d „ ƒ YZ d e f d „ ƒ YZ d S(
iÿÿÿÿNt UpgraderConflictc B s e Z d Z RS( s9 Two upgraders with the same version have been registered.( t __name__t
__module__t __doc__( ( ( s3 /usr/lib/python2.7/dist-packages/landscape/patch.pyR s t UpgradeManagerBasec B s2 e Z d Z d „ Z d „ Z d „ Z d „ Z RS( s A simple upgrade system.c C s
i | _ d S( N( t
_upgraders( t self( ( s3 /usr/lib/python2.7/dist-packages/landscape/patch.pyt __init__ s c C sC | | j k r2 t d | | j | | f ƒ ‚ n | | j | <d S( 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( R R ( R t versiont function( ( s3 /usr/lib/python2.7/dist-packages/landscape/patch.pyt register_upgrader s c C s# | j j ƒ } | r t | ƒ Sd S( sp
Get the 'current' version of any database that this
UpgradeManager will be applied to.
i ( R t keyst max( R R ( ( s3 /usr/lib/python2.7/dist-packages/landscape/patch.pyt get_version s
c s ‡ ‡ f d † } | 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.
c s ˆ j ˆ | ƒ | S( N( R
( R ( R R ( s3 /usr/lib/python2.7/dist-packages/landscape/patch.pyt inner/ s ( ( R R R ( ( R R s3 /usr/lib/python2.7/dist-packages/landscape/patch.pyt upgrader' s ( R R R R R
R
R ( ( ( s3 /usr/lib/python2.7/dist-packages/landscape/patch.pyR s
t UpgradeManagerc B s e Z d „ Z d „ Z RS( c C s | j d ƒ s"