summaryrefslogtreecommitdiff
path: root/service/pixelated/resources/features_resource.py
diff options
context:
space:
mode:
authorCaio Carrara <ccarrara@thoughtworks.com>2016-05-11 16:24:46 -0300
committerCaio Carrara <ccarrara@thoughtworks.com>2016-05-11 16:24:46 -0300
commitc5f92efdd19464b876e56750f85a6d8ba4d7b558 (patch)
tree27153897785261460f7bd9fa3a7c588eb1d5137a /service/pixelated/resources/features_resource.py
parenta23d3bebc0c879682f7d70b2a8451cc98b2d70ab (diff)
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.
Diffstat (limited to 'service/pixelated/resources/features_resource.py')
-rw-r--r--service/pixelated/resources/features_resource.py12
1 files changed, 1 insertions, 11 deletions
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]