'Populate request.toolmaps from tools specified in config.'

def __enter__(self):

    cherrypy.serving.request.toolmaps[self.namespace] = map = {}
    def populate(k, v):
        (toolname, arg) = k.split('.', 1)
        bucket = map.setdefault(toolname, {})
        bucket[arg] = v
    return populate
