Ejemplo n.º 1
0
 def test_site(self):
     self.assertEqual(unicode(Horizon), "Horizon")
     self.assertEqual(repr(Horizon), "<Site: Horizon>")
     dash = Horizon.get_dashboard('nova')
     self.assertEqual(Horizon.get_default_dashboard(), dash)
     user = users.User()
     self.assertEqual(Horizon.get_user_home(user), dash.get_absolute_url())
Ejemplo n.º 2
0
from horizon.base import Horizon


nova_dashboard = Horizon.get_dashboard('project')
compute_panel_group = nova_dashboard.get_panel_group('network')
compute_panel_group.panels.append('networking')
Ejemplo n.º 3
0
# Author: DreamHost, LLC
#
# 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 horizon.base import Horizon


nova_dashboard = Horizon.get_dashboard("project")
compute_panel_group = nova_dashboard.get_panel_group("network")
compute_panel_group.panels.append("networking")

#
# Manually override the definition of the router detail view method
# to properly look up port data w/ akanda. May God have mercy on my soul.
#
from openstack_dashboard.dashboards.project.routers import views
from akanda.horizon.routers.views import get_interfaces_data

views.DetailView.get_interfaces_data = get_interfaces_data
Ejemplo n.º 4
0
from horizon.base import Horizon

nova_dashboard = Horizon.get_dashboard('project')
compute_panel_group = nova_dashboard.get_panel_group('network')
compute_panel_group.panels.append('networking')
Ejemplo n.º 5
0
from horizon.base import Horizon


nova_dashboard = Horizon.get_dashboard('nova')
compute_panel_group = nova_dashboard.get_panel_group('compute')
compute_panel_group.panels.append('networking')