

def configure_uploads(app, upload_sets):
    "\n    Call this after the app has been configured. It will go through all the\n    upload sets, get their configuration, and store the configuration on the\n    app. It will also register the _uploads blueprint if it hasn't been set. This\n    can be called multiple times with different upload sets.\n\n    .. versionchanged:: 0.1.3\n       The uploads blueprint will only be registered if it is needed\n       to serve the upload sets.\n\n    :param app: The `~flask.Flask` instance to get the configuration from.\n    :param upload_sets: The `UploadSet` instances to configure.\n    "
    if isinstance(upload_sets, UploadSet):
        upload_sets = (upload_sets,)
    if (not hasattr(app, 'upload_set_config')):
        app.upload_set_config = {
            
        }
    set_config = app.upload_set_config
    defaults = dict(dest=app.config.get('UPLOADS_DEFAULT_DEST'), url=app.config.get('UPLOADS_DEFAULT_URL'))
    for uset in upload_sets:
        config = config_for_set(uset, app, defaults)
        uset[uset.name] = config
    try:
        set_config_values = set_config.itervalues()
    except AttributeError:
        set_config_values = set_config.values()
    should_serve = any(((s.base_url is None) for s in set_config_values))
    if (('_uploads' not in app.blueprints) and should_serve):
        app.register_blueprint(uploads_bp)

dataset/ETHPy150Open jeffwidman/flask-uploads/flask_uploads.py configure_uploads/VarMisuse@106/378 `set_config`->`uset`