From c5f92efdd19464b876e56750f85a6d8ba4d7b558 Mon Sep 17 00:00:00 2001 From: Caio Carrara Date: Wed, 11 May 2016 16:24:46 -0300 Subject: Remove dispatcher references from service Since we're not using dispatcher anymore, it doesn't make sense to keep dispatcher references and program flows that depend on it. For example, it doesn't make sense keep the flag --organization-mode, so it was removed as well. --- service/pixelated/resources/features_resource.py | 12 +----------- 1 file changed, 1 insertion(+), 11 deletions(-) (limited to 'service/pixelated/resources/features_resource.py') diff --git a/service/pixelated/resources/features_resource.py b/service/pixelated/resources/features_resource.py index c8cad2d3..4856b64b 100644 --- a/service/pixelated/resources/features_resource.py +++ b/service/pixelated/resources/features_resource.py @@ -30,18 +30,8 @@ class FeaturesResource(Resource): self._multi_user = multi_user def render_GET(self, request): - dispatcher_features = self._dispatcher_features() disabled_features = self._disabled_features() - return respond_json( - {'disabled_features': disabled_features, 'dispatcher_features': dispatcher_features}, request) - - def _dispatcher_features(self): - dispatcher_features = {} - if os.environ.get('DISPATCHER_LOGOUT_URL'): - dispatcher_features['logout'] = os.environ.get('DISPATCHER_LOGOUT_URL') - if self._multi_user: - dispatcher_features['logout'] = '/%s' % LogoutResource.BASE_URL - return dispatcher_features + return respond_json({'disabled_features': disabled_features}, request) def _disabled_features(self): disabled_features = [default_disabled_feature for default_disabled_feature in self.DISABLED_FEATURES] -- cgit v1.2.3