def get_plugins(cls, all=False): if all: plugins = super().get_plugins() else: plugins = [] for cls in settings.WEBAPPS_ENABLED_OPTIONS: plugins.append(import_class(cls)) return plugins
def get_plugins(cls, all=False): if all: plugins = super().get_plugins() else: plugins = [] for cls in settings.WEBSITES_ENABLED_DIRECTIVES: plugins.append(import_class(cls)) return plugins
def get_plugins(cls): plugins = [] for cls in settings.PAYMENTS_ENABLED_METHODS: try: plugins.append(import_class(cls)) except ImportError as exc: logger.error('Error loading %s: %s' % (cls, str(exc))) return plugins
def get_plugins(cls, all=False): if all: for module in os.listdir(os.path.dirname(__file__)): if module not in ('options.py', '__init__.py') and module[-3:] == '.py': importlib.import_module('.'+module[:-3], __package__) plugins = super().get_plugins() else: plugins = [] for cls in settings.PAYMENTS_ENABLED_METHODS: plugins.append(import_class(cls)) return plugins
def get_plugins(cls, all=False): if all: for module in os.listdir(os.path.dirname(__file__)): if module != "__init__.py" and module[-3:] == ".py": importlib.import_module("." + module[:-3], __package__) plugins = super().get_plugins() else: plugins = [] for cls in settings.WEBAPPS_TYPES: plugins.append(import_class(cls)) return plugins
def get_plugins(cls, all=False): if all: for module in os.listdir(os.path.dirname(__file__)): if module not in ('options.py', '__init__.py') and module[-3:] == '.py': importlib.import_module('.'+module[:-3], __package__) plugins = super().get_plugins() else: plugins = [] for cls in settings.SAAS_ENABLED_SERVICES: plugins.append(import_class(cls)) return plugins
def get_plugins(cls, all=False): if all: for module in os.listdir(os.path.dirname(__file__)): if module != '__init__.py' and module[-3:] == '.py': importlib.import_module('.' + module[:-3], __package__) plugins = super().get_plugins() else: plugins = [] for cls in settings.WEBAPPS_TYPES: plugins.append(import_class(cls)) return plugins
def get_plugins(cls): plugins = [] for cls in settings.SAAS_ENABLED_SERVICES: plugins.append(import_class(cls)) return plugins
def get_plugins(cls): plugins = [] for cls in settings.WEBAPPS_TYPES: plugins.append(import_class(cls)) return plugins
def get_plugins(cls): plugins = [] for cls in settings.PAYMENTS_ENABLED_METHODS: plugins.append(import_class(cls)) return plugins