You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

15 lines
396 B

4 years ago
  1. """
  2. The Extension Manager
  3. See documentation in docs/topics/extensions.rst
  4. """
  5. from scrapy.middleware import MiddlewareManager
  6. from scrapy.utils.conf import build_component_list
  7. class ExtensionManager(MiddlewareManager):
  8. component_name = 'extension'
  9. @classmethod
  10. def _get_mwlist_from_settings(cls, settings):
  11. return build_component_list(settings.getwithbase('EXTENSIONS'))