Ñò
0é¡Ic @ sO d e f d „ ƒ YZ d e f d „ ƒ YZ d e f d „ ƒ YZ d „ Z d S( t ConfigNamespacec B sh e Z d Z d „ Z d „ Z d „ Z d „ Z d „ Z d „ Z d „ Z d „ Z
d „ Z d
„ Z RS( s Abstract class representing the interface of Config objects.
A ConfigNamespace is a collection of names mapped to values, where
the values may be nested namespaces. Values can be accessed via
container notation - obj[key] - or via dotted notation - obj.key.
Both these access methods are equivalent.
To minimize name conflicts between namespace keys and class members,
the number of class members should be minimized, and the names of
all class members should start with an underscore.
Subclasses must implement the methods for container-like access,
and this class will automatically provide dotted access.
c C s
t | ƒ S( N( t NotImplementedError( t selft key( ( s3 /usr/lib/python2.6/site-packages/iniparse/config.pyt __getitem__ s c C s t | | ƒ ‚ d S( N( R ( R R t value( ( s3 /usr/lib/python2.6/site-packages/iniparse/config.pyt __setitem__ s c C s t | ƒ ‚ d S( N( R ( R R ( ( s3 /usr/lib/python2.6/site-packages/iniparse/config.pyt __delitem__ s c C s t ƒ S( N( R ( R ( ( s3 /usr/lib/python2.6/site-packages/iniparse/config.pyt __iter__ s c C s t | ƒ ‚ d S( N( R ( R t name( ( s3 /usr/lib/python2.6/site-packages/iniparse/config.pyt _new_namespace s c C s5 y | i | ƒ SWn t j
o t | | ƒ SXd S( N( R t KeyErrort Undefined( R R ( ( s3 /usr/lib/python2.6/site-packages/iniparse/config.pyt __getattr__. s c C sQ y' t i | | ƒ t i | | | ƒ Wn# t j
o | i | | ƒ n Xd S( N( t objectt __getattribute__t __setattr__t AttributeErrorR ( R R R ( ( s3 /usr/lib/python2.6/site-packages/iniparse/config.pyR 4 s
c C sK y$ t i | | ƒ t i | | ƒ Wn t j
o | i | ƒ n Xd S( N( R R t __delattr__R R ( R R ( ( s3 /usr/lib/python2.6/site-packages/iniparse/config.pyR ; s
c C s | i S( N( t __dict__( R ( ( s3 /usr/lib/python2.6/site-packages/iniparse/config.pyt __getstate__B s c C s | i i | ƒ d S( N( R t update( R t state( ( s3 /usr/lib/python2.6/site-packages/iniparse/config.pyt __setstate__E s (
t __name__t
__module__t __doc__R R R R R
R
R R R R ( ( ( s3 /usr/lib/python2.6/site-packages/iniparse/config.pyR s R c B s e Z d Z d „ Z d „ Z RS( s Helper class used to hold undefined names until assignment.
This class helps create any undefined subsections when an
assignment is made to a nested value. For example, if the
statement is "cfg.a.b.c = 42", but "cfg.a.b" does not exist yet.
c C s* t i | d | ƒ t i | d | ƒ d S( NR t namespace( R R ( R R R ( ( s3 /usr/lib/python2.6/site-packages/iniparse/config.pyt __init__P s c C s# | i i | i ƒ } | | |