Пример #1
0
 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
Пример #2
0
 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
Пример #3
0
 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
Пример #4
0
 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
Пример #5
0
 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
Пример #6
0
 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
Пример #7
0
 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
Пример #8
0
 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
Пример #9
0
 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
Пример #10
0
 def get_plugins(cls):
     plugins = []
     for cls in settings.SAAS_ENABLED_SERVICES:
         plugins.append(import_class(cls))
     return plugins
Пример #11
0
 def get_plugins(cls):
     plugins = []
     for cls in settings.WEBAPPS_TYPES:
         plugins.append(import_class(cls))
     return plugins
Пример #12
0
 def get_plugins(cls):
     plugins = []
     for cls in settings.PAYMENTS_ENABLED_METHODS:
         plugins.append(import_class(cls))
     return plugins