Package elisa :: Package extern :: Package coherence :: Module config :: Class Config
[hide private]
[frames] | no frames]

Class Config

source code



an incomplete XML file to dict and vice versa mapper

- nodes with an attribute 'active' set to 'no' are ignored
  and not transferred into the dict

- nodes with tags ending with 'list' are transferrend into
  an item with the key = 'tag' and a list with the subnodes
  as the value

at the moment we parse the xml file and create dicts or lists out
of the nodes, but maybe it is much easier to keep the xml structure
as it is and simulate the dict/list access behavior on it?



Instance Methods [hide private]
 
__init__(self, file) source code
 
save(self, file='frontend') source code

Inherited from ConfigDict: from_element, to_element

Inherited from dict: __cmp__, __contains__, __delitem__, __eq__, __ge__, __getattribute__, __getitem__, __gt__, __hash__, __iter__, __le__, __len__, __lt__, __ne__, __new__, __repr__, __setitem__, clear, copy, fromkeys, get, has_key, items, iteritems, iterkeys, itervalues, keys, pop, popitem, setdefault, update, values

Inherited from ConfigMixin: nodes_to_dict

Inherited from object: __delattr__, __reduce__, __reduce_ex__, __setattr__, __str__

Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

__init__(self, file)
(Constructor)

source code 
Overrides: ConfigDict.__init__