# -*- coding: utf-8 -*-
# This file is part of Shuup.
#
# Copyright (c) 2012-2021, Shuup Commerce Inc. All rights reserved.
#
# This source code is licensed under the OSL-3.0 license found in the
# LICENSE file in the root directory of this source tree.
from shuup.utils.importing import cached_load
[docs]class DefaultSupplierProvider(object):
@classmethod
[docs] def get_supplier(cls, request, **kwargs):
return None
[docs]def get_supplier(request, **kwargs):
return cached_load("SHUUP_ADMIN_SUPPLIER_PROVIDER_SPEC").get_supplier(request, **kwargs)