def load_extensions(environment, extensions):
    """Load the extensions from the list and bind it to the environment.
    Returns a dict of instanciated environments.
    """
    result = {}
    for extension in extensions:
        if isinstance(extension, basestring):
            extension = import_string(extension)
        result[extension.identifier] = extension(environment)
    return result
def load_extensions ( environment , extensions ) : result = { } for extension in extensions : if isinstance ( extension , basestring ) : extension = import_string ( extension ) result [ extension . identifier ] = extension ( environment ) return result
Load the extensions from the list and bind it to the environment.
    Returns a dict of instanciated environments.