def cpdb_import(cpe_config, filename):
    """
    Starts the dialog to import basedata from latex files.
    """
    from chessproblem.ui.database.file_importer import import_all_from_tex
    from chessproblem.model.db import DbService
    db_service = DbService(cpe_config.database_url)
    import_all_from_tex(db_service, filename)
