def _getRegions(self):
def makeRegion(name, r):<EOL><INDENT>"""<STR_LIT>"""<EOL>r = Region(r, self)<EOL>return r<EOL><DEDENT>regions = CollectionWrapper(engine_internal.Network.getRegions(self), makeRegion)<EOL>return regions<EOL>
Get the collection of regions in a network

        This is a tricky one. The collection of regions returned from
        from the internal network is a collection of internal regions.
        The desired collection is a collelcion of net.Region objects
        that also points to this network (net.network) and not to
        the internal network. To achieve that a CollectionWrapper
        class is used with a custom makeRegion() function (see bellow)
        as a value wrapper. The CollectionWrapper class wraps each value in the
        original collection with the result of the valueWrapper.