diff --git a/daybed/__init__.py b/daybed/__init__.py index a1e4d4a..3016c2d 100644 --- a/daybed/__init__.py +++ b/daybed/__init__.py @@ -17,6 +17,7 @@ from pyramid.events import NewRequest from pyramid.renderers import JSONP from pyramid.authentication import BasicAuthAuthenticationPolicy +from pyramid.settings import aslist from pyramid_hawkauth import HawkAuthenticationPolicy from pyramid_multiauth import MultiAuthenticationPolicy @@ -173,10 +174,10 @@ def attach_objects_to_request(event): config.add_subscriber(attach_objects_to_request, NewRequest) # Plugins + plugins = aslist(settings['daybed.plugins']) - try: - config.include("daybed_browserid") - except ImportError: - pass + for plugin in plugins: + print(plugin) + config.include(plugin) return config.make_wsgi_app()