# Path: coherence/extern/et.py
# def new_encode_entity(text, pattern=utf8_escape):
#     def escape_entities(m, map=elementtree.ElementTree._escape_map):
#     def XMLParser(encoding='utf-8'):
# def namespace_map_update(namespaces):
# def indent(elem, level=0):
# def parse_xml(data, encoding="utf-8", dump_invalid_data=False):
# def qname(tag, ns=None):
# def textElement(parent, tag, namespace, text):
# def textElementIfNotNone(parent, tag, namespace, text):
# class ElementInterface(elementtree.ElementTree._ElementInterface): pass


from coherence.extern.et import ET, indent, textElement
    import sys
    #    return self.config.keys()

    #def values(self):
    #    """ """
    #    return self.config.values()

    #def __repr__(self):
    #    return "%r" % self.config

class Config(ConfigDict):
    """
    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?

    """

    def __init__(self, file):
        self.file = file
        dict.__init__(self)
        try:

# Path: coherence/extern/et.py
# def new_encode_entity(text, pattern=utf8_escape):
#     def escape_entities(m, map=elementtree.ElementTree._escape_map):
#     def XMLParser(encoding='utf-8'):
# def namespace_map_update(namespaces):
# def indent(elem, level=0):
# def parse_xml(data, encoding="utf-8", dump_invalid_data=False):
# def qname(tag, ns=None):
# def textElement(parent, tag, namespace, text):
# def textElementIfNotNone(parent, tag, namespace, text):
# class ElementInterface(elementtree.ElementTree._ElementInterface): pass


# Path: coherence/extern/config.py
from coherence.extern.et import ET, indent, textElement
    import sys

    #    return self.config.keys()

    #def values(self):
    #    """ """
    #    return self.config.values()

    #def __repr__(self):
    #    return "%r" % self.config

class Config(ConfigDict):
    """
    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?

    """

    def __init__(self, file):
        self.file = file
        dict.__init__(self)
        try:

            xml = ET.parse(file)