diff --git a/src/clmc-webservice/clmcservice/__init__.py b/src/clmc-webservice/clmcservice/__init__.py index 3dbd8153d041e32784b1276344e5290b1c82d1c8..4cb9f81bdcdb9062e23cf136f73b96bd3527417a 100644 --- a/src/clmc-webservice/clmcservice/__init__.py +++ b/src/clmc-webservice/clmcservice/__init__.py @@ -24,7 +24,6 @@ from pyramid.config import Configurator from pyramid.settings import asbool -from clmcservice.views import AggregatorConfig, AggregatorController from clmcservice.utilities import RUNNING_FLAG, MALFORMED_FLAG @@ -45,12 +44,12 @@ def main(global_config, **settings): config = Configurator(settings=settings) config.add_route('aggregator_config', '/aggregator/config') - config.add_view(AggregatorConfig, attr='get', request_method='GET') - config.add_view(AggregatorConfig, attr='put', request_method='PUT') + config.add_view('clmcservice.views.AggregatorConfig', attr='get', request_method='GET') + config.add_view('clmcservice.views.AggregatorConfig', attr='put', request_method='PUT') config.add_route('aggregator_controller', '/aggregator/control') - config.add_view(AggregatorController, attr='get', request_method='GET') - config.add_view(AggregatorController, attr='put', request_method='PUT') + config.add_view('clmcservice.views.AggregatorController', attr='get', request_method='GET') + config.add_view('clmcservice.views.AggregatorController', attr='put', request_method='PUT') config.scan() return config.make_wsgi_app()