| 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/lib/ |
Upload File : |
ó
}9Rc @ s d d l Z d d l Z d d l Z d d l Z d d d d d d d d g Z e ƒ Z d e f d
„ ƒ YZ d e f d „ ƒ YZ d e f d „ ƒ YZ
d e f d
„ ƒ YZ e j d ƒ j
Z d „ Z d „ Z d e f d „ ƒ YZ d e f d „ ƒ YZ d e f d „ ƒ YZ d S( iÿÿÿÿNt Persistt
PickleBackendt BPickleBackendt path_string_to_tuplet path_tuple_to_stringt
RootedPersistt PersistErrort PersistReadOnlyErrorc B s e Z RS( ( t __name__t
__module__( ( ( s9 /usr/lib/python2.7/dist-packages/landscape/lib/persist.pyR # s c B s e Z RS( ( R R ( ( ( s9 /usr/lib/python2.7/dist-packages/landscape/lib/persist.pyR ' s c B s" e Z d Z d d d „ Z d „ Z d „ Z d „ Z e e e ƒ Z e e ƒ Z
d „ Z d „ Z d „ Z
d d „ Z e e d „ Z e e e d
„ Z e e e e d „ Z e e e d „ Z d e e e d
„ Z e e d „ Z e e e d „ Z e e e d „ Z e e d „ Z d „ Z RS( s Persist a hierarchical database of key=>value pairs.
There are three different kinds of option maps, regarding the
persistence and priority that maps are queried.
- hard - Options are persistent.
- soft - Options are not persistent, and have a higher priority
than persistent options.
- weak - Options are not persistent, and have a lower priority
than persistent options.
@ivar filename: The name of the file where persist data is saved
or None if no filename is available.
c C s˜ | d k r t ƒ } n | | _ | j ƒ | _ i | _ i | _ t | _ t | _ | | _
| | _ | d k r” t j
j | ƒ r” | j | ƒ n d S( s…
@param backend: The backend to use. If none is specified,
L{BPickleBackend} will be used.
@param filename: The default filename to save to and load from. If
specified, and the file exists, it will be immediately
loaded. Specifying this will also allow L{save} to be called
without any arguments to save the persist.
N( t NoneR t _backendt newt _hardmapt _softmapt _weakmapt Falset _readonlyt _modifiedt _configt filenamet ost patht existst load( t selft backendR ( ( s9 /usr/lib/python2.7/dist-packages/landscape/lib/persist.pyt __init__= s c C s | j S( N( R ( R ( ( s9 /usr/lib/python2.7/dist-packages/landscape/lib/persist.pyt
_get_readonlyS s c C s t | ƒ | _ d S( N( t boolR ( R t flag( ( s9 /usr/lib/python2.7/dist-packages/landscape/lib/persist.pyt
_set_readonlyV s c C s | j S( N( R ( R ( ( s9 /usr/lib/python2.7/dist-packages/landscape/lib/persist.pyt
_get_modifiedY s c C s
t | _ d S( s( Set the database status as non-modified.N( R R ( R ( ( s9 /usr/lib/python2.7/dist-packages/landscape/lib/persist.pyt reset_modified_ s c C s | j r t d ƒ ‚ n d S( sR Assert if the object is writable
@raise: L{PersistReadOnlyError}
s"