@with_dbenv()
def get_data_class(data_type):
    'Provide access to the orm.data classes with deferred dbenv loading.'
    from aiida.plugins import DataFactory
    from aiida.common.exceptions import MissingEntryPointError
    data_cls = None
    try:
        data_cls = DataFactory(data_type)
    except MissingEntryPointError as err:
        raise err
    return data_cls
Provide access to the orm.data classes with deferred dbenv loading.
@with_dbenv()
def get_data_class(data_type):
    
    from aiida.plugins import DataFactory
    from aiida.common.exceptions import MissingEntryPointError
    data_cls = None
    try:
        data_cls = DataFactory(data_type)
    except MissingEntryPointError as err:
        raise err
    return data_cls