def get_settings_from_interface(iface):
settings = {}<EOL>schema_id = iface.getName()<EOL>settings[schema_id] = {}<EOL>schema = getAdapter(api.get_portal(), iface)<EOL>for setting in getFieldNames(iface):<EOL><INDENT>value = getattr(schema, setting, None)<EOL>if is_json_serializable(value):<EOL><INDENT>settings[schema_id][setting] = value<EOL><DEDENT><DEDENT>return settings<EOL>
Get the configuration settings associated to a list of schema
    interfaces

    :param iface: The schema interface from which we want to get its
    fields
    :return: Dictionary with iface name as key and as value a dictionary
    with the setting names (keys) linked to that schema and its
    values.