Package wafadmin :: Module Environment :: Class Environment
[hide private]
[frames] | no frames]

Class Environment

source code

object --+
         |
        Environment

A safe-to-use dictionary, but do not attach functions to it please (break cPickle) An environment instance can be stored into a file and loaded easily

Instance Methods [hide private]
 
__init__(self)
x.__init__(...) initializes x; see x.__class__.__doc__ for signature
source code
 
__contains__(self, key) source code
 
__str__(self)
str(x)
source code
 
set_variant(self, name) source code
 
variant(self) source code
 
copy(self) source code
 
__getitem__(self, key) source code
 
__setitem__(self, key, value) source code
 
get_flat(self, key) source code
 
_get_list_value_for_modification(self, key)
Gets a value that must be a list for further modification.
source code
 
append_value(self, var, value) source code
 
prepend_value(self, var, value) source code
 
append_unique(self, var, value) source code
 
store(self, filename)
Write the variables into a file
source code
 
load(self, filename)
Retrieve the variables from a file
source code
 
get_destdir(self)
return the destdir, useful for installing
source code

Inherited from object: __delattr__, __getattribute__, __hash__, __new__, __reduce__, __reduce_ex__, __repr__, __setattr__

Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

__init__(self)
(Constructor)

source code 

x.__init__(...) initializes x; see x.__class__.__doc__ for signature

Overrides: object.__init__
(inherited documentation)

__str__(self)
(Informal representation operator)

source code 

str(x)

Overrides: object.__str__
(inherited documentation)

_get_list_value_for_modification(self, key)

source code 

Gets a value that must be a list for further modification. The list may be modified inplace and there is no need to "self.table[var] = value" afterwards.