summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--tuskar_ui/infrastructure/parameters/forms.py6
-rw-r--r--tuskar_ui/infrastructure/templatetags/context_selection.py41
2 files changed, 5 insertions, 42 deletions
diff --git a/tuskar_ui/infrastructure/parameters/forms.py b/tuskar_ui/infrastructure/parameters/forms.py
index cc31df57..e0c0609d 100644
--- a/tuskar_ui/infrastructure/parameters/forms.py
+++ b/tuskar_ui/infrastructure/parameters/forms.py
@@ -136,7 +136,11 @@ class AdvancedEditServiceConfig(ServiceConfig):
def handle(self, request, data):
plan = api.tuskar.Plan.get_the_plan(self.request)
- data = self._sync_common_params_across_roles(plan, data)
+
+ # TODO(bcrochet): Commenting this out.
+ # For advanced config, we should have a whitelist of which params
+ # must be synced across roles.
+ # data = self._sync_common_params_across_roles(plan, data)
try:
plan.patch(request, plan.uuid, data)
diff --git a/tuskar_ui/infrastructure/templatetags/context_selection.py b/tuskar_ui/infrastructure/templatetags/context_selection.py
deleted file mode 100644
index 8b29d805..00000000
--- a/tuskar_ui/infrastructure/templatetags/context_selection.py
+++ /dev/null
@@ -1,41 +0,0 @@
-# Licensed under the Apache License, Version 2.0 (the "License"); you may
-# not use this file except in compliance with the License. You may obtain
-# a copy of the License at
-#
-# http://www.apache.org/licenses/LICENSE-2.0
-#
-# Unless required by applicable law or agreed to in writing, software
-# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
-# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
-# License for the specific language governing permissions and limitations
-# under the License.
-
-from __future__ import absolute_import
-
-from django import template
-
-
-register = template.Library()
-
-# Overwrite the selector code from OpenStack Dashboard, so that the
-# selector doesn't appear.
-
-
-@register.simple_tag()
-def show_overview(*args, **kwargs):
- return '<span class="context-overview"></span>'
-
-
-@register.simple_tag()
-def show_domain_list(*args, **kwargs):
- return ''
-
-
-@register.simple_tag()
-def show_project_list(*args, **kwargs):
- return ''
-
-
-@register.simple_tag()
-def show_region_list(*args, **kwargs):
- return ''