components/openstack/horizon/files/overrides.py
author Strony <strony.zhang@oracle.com>
Mon, 07 Jul 2014 20:22:27 -0700
changeset 1989 ae222899e270
parent 1970 f37782924749
child 1990 c1c6cc703d7a
permissions -rw-r--r--
19061438 checkboxes related with 'create volume from Image' in the Horizon don't work
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
1820
f3a6bd7bd4a6 18545343 nova-conductor's method shouldn't try to enable mysql
Drew Fisher <drew.fisher@oracle.com>
parents:
diff changeset
     1
# Copyright (c) 2014, Oracle and/or its affiliates. All rights reserved.
f3a6bd7bd4a6 18545343 nova-conductor's method shouldn't try to enable mysql
Drew Fisher <drew.fisher@oracle.com>
parents:
diff changeset
     2
#
f3a6bd7bd4a6 18545343 nova-conductor's method shouldn't try to enable mysql
Drew Fisher <drew.fisher@oracle.com>
parents:
diff changeset
     3
#    Licensed under the Apache License, Version 2.0 (the "License"); you may
f3a6bd7bd4a6 18545343 nova-conductor's method shouldn't try to enable mysql
Drew Fisher <drew.fisher@oracle.com>
parents:
diff changeset
     4
#    not use this file except in compliance with the License. You may obtain
f3a6bd7bd4a6 18545343 nova-conductor's method shouldn't try to enable mysql
Drew Fisher <drew.fisher@oracle.com>
parents:
diff changeset
     5
#    a copy of the License at
f3a6bd7bd4a6 18545343 nova-conductor's method shouldn't try to enable mysql
Drew Fisher <drew.fisher@oracle.com>
parents:
diff changeset
     6
#
f3a6bd7bd4a6 18545343 nova-conductor's method shouldn't try to enable mysql
Drew Fisher <drew.fisher@oracle.com>
parents:
diff changeset
     7
#         http://www.apache.org/licenses/LICENSE-2.0
f3a6bd7bd4a6 18545343 nova-conductor's method shouldn't try to enable mysql
Drew Fisher <drew.fisher@oracle.com>
parents:
diff changeset
     8
#
f3a6bd7bd4a6 18545343 nova-conductor's method shouldn't try to enable mysql
Drew Fisher <drew.fisher@oracle.com>
parents:
diff changeset
     9
#    Unless required by applicable law or agreed to in writing, software
f3a6bd7bd4a6 18545343 nova-conductor's method shouldn't try to enable mysql
Drew Fisher <drew.fisher@oracle.com>
parents:
diff changeset
    10
#    distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
f3a6bd7bd4a6 18545343 nova-conductor's method shouldn't try to enable mysql
Drew Fisher <drew.fisher@oracle.com>
parents:
diff changeset
    11
#    WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
f3a6bd7bd4a6 18545343 nova-conductor's method shouldn't try to enable mysql
Drew Fisher <drew.fisher@oracle.com>
parents:
diff changeset
    12
#    License for the specific language governing permissions and limitations
f3a6bd7bd4a6 18545343 nova-conductor's method shouldn't try to enable mysql
Drew Fisher <drew.fisher@oracle.com>
parents:
diff changeset
    13
#    under the License.
f3a6bd7bd4a6 18545343 nova-conductor's method shouldn't try to enable mysql
Drew Fisher <drew.fisher@oracle.com>
parents:
diff changeset
    14
f3a6bd7bd4a6 18545343 nova-conductor's method shouldn't try to enable mysql
Drew Fisher <drew.fisher@oracle.com>
parents:
diff changeset
    15
"""
f3a6bd7bd4a6 18545343 nova-conductor's method shouldn't try to enable mysql
Drew Fisher <drew.fisher@oracle.com>
parents:
diff changeset
    16
Solaris-specific customizations for Horizon
f3a6bd7bd4a6 18545343 nova-conductor's method shouldn't try to enable mysql
Drew Fisher <drew.fisher@oracle.com>
parents:
diff changeset
    17
"""
f3a6bd7bd4a6 18545343 nova-conductor's method shouldn't try to enable mysql
Drew Fisher <drew.fisher@oracle.com>
parents:
diff changeset
    18
1970
f37782924749 19056291 A couple of links to zone consoles still exist
Drew Fisher <drew.fisher@oracle.com>
parents: 1944
diff changeset
    19
from openstack_dashboard.dashboards.admin.instances import tables \
f37782924749 19056291 A couple of links to zone consoles still exist
Drew Fisher <drew.fisher@oracle.com>
parents: 1944
diff changeset
    20
    as admin_tables
1820
f3a6bd7bd4a6 18545343 nova-conductor's method shouldn't try to enable mysql
Drew Fisher <drew.fisher@oracle.com>
parents:
diff changeset
    21
from openstack_dashboard.dashboards.admin.networks.forms import CreateNetwork
f3a6bd7bd4a6 18545343 nova-conductor's method shouldn't try to enable mysql
Drew Fisher <drew.fisher@oracle.com>
parents:
diff changeset
    22
from openstack_dashboard.dashboards.admin.networks.ports.forms import \
f3a6bd7bd4a6 18545343 nova-conductor's method shouldn't try to enable mysql
Drew Fisher <drew.fisher@oracle.com>
parents:
diff changeset
    23
    CreatePort
f3a6bd7bd4a6 18545343 nova-conductor's method shouldn't try to enable mysql
Drew Fisher <drew.fisher@oracle.com>
parents:
diff changeset
    24
from openstack_dashboard.dashboards.admin.networks.ports.tables import \
f3a6bd7bd4a6 18545343 nova-conductor's method shouldn't try to enable mysql
Drew Fisher <drew.fisher@oracle.com>
parents:
diff changeset
    25
    DeletePort, PortsTable
f3a6bd7bd4a6 18545343 nova-conductor's method shouldn't try to enable mysql
Drew Fisher <drew.fisher@oracle.com>
parents:
diff changeset
    26
from openstack_dashboard.dashboards.admin.networks.subnets.tables import \
f3a6bd7bd4a6 18545343 nova-conductor's method shouldn't try to enable mysql
Drew Fisher <drew.fisher@oracle.com>
parents:
diff changeset
    27
    DeleteSubnet, SubnetsTable
f3a6bd7bd4a6 18545343 nova-conductor's method shouldn't try to enable mysql
Drew Fisher <drew.fisher@oracle.com>
parents:
diff changeset
    28
from openstack_dashboard.dashboards.admin.networks.tables import \
f3a6bd7bd4a6 18545343 nova-conductor's method shouldn't try to enable mysql
Drew Fisher <drew.fisher@oracle.com>
parents:
diff changeset
    29
    DeleteNetwork, NetworksTable
1944
56ac2df1785b PSARC/2014/207 OpenStack Glance Update to Havana
Drew Fisher <drew.fisher@oracle.com>
parents: 1820
diff changeset
    30
from openstack_dashboard.dashboards.project.access_and_security.tabs import \
56ac2df1785b PSARC/2014/207 OpenStack Glance Update to Havana
Drew Fisher <drew.fisher@oracle.com>
parents: 1820
diff changeset
    31
    AccessAndSecurityTabs, APIAccessTab, FloatingIPsTab, KeypairsTab
1989
ae222899e270 19061438 checkboxes related with 'create volume from Image' in the Horizon don't work
Strony <strony.zhang@oracle.com>
parents: 1970
diff changeset
    32
from \
ae222899e270 19061438 checkboxes related with 'create volume from Image' in the Horizon don't work
Strony <strony.zhang@oracle.com>
parents: 1970
diff changeset
    33
    openstack_dashboard.dashboards.project.images_and_snapshots.images.tables \
ae222899e270 19061438 checkboxes related with 'create volume from Image' in the Horizon don't work
Strony <strony.zhang@oracle.com>
parents: 1970
diff changeset
    34
    import EditImage, DeleteImage, ImagesTable, LaunchImage
1970
f37782924749 19056291 A couple of links to zone consoles still exist
Drew Fisher <drew.fisher@oracle.com>
parents: 1944
diff changeset
    35
from openstack_dashboard.dashboards.project.instances import tables \
f37782924749 19056291 A couple of links to zone consoles still exist
Drew Fisher <drew.fisher@oracle.com>
parents: 1944
diff changeset
    36
    as project_tables
1820
f3a6bd7bd4a6 18545343 nova-conductor's method shouldn't try to enable mysql
Drew Fisher <drew.fisher@oracle.com>
parents:
diff changeset
    37
from openstack_dashboard.dashboards.project.instances.tabs import \
f3a6bd7bd4a6 18545343 nova-conductor's method shouldn't try to enable mysql
Drew Fisher <drew.fisher@oracle.com>
parents:
diff changeset
    38
    InstanceDetailTabs, LogTab, OverviewTab
f3a6bd7bd4a6 18545343 nova-conductor's method shouldn't try to enable mysql
Drew Fisher <drew.fisher@oracle.com>
parents:
diff changeset
    39
from openstack_dashboard.dashboards.project.instances.workflows import \
f3a6bd7bd4a6 18545343 nova-conductor's method shouldn't try to enable mysql
Drew Fisher <drew.fisher@oracle.com>
parents:
diff changeset
    40
    create_instance
f3a6bd7bd4a6 18545343 nova-conductor's method shouldn't try to enable mysql
Drew Fisher <drew.fisher@oracle.com>
parents:
diff changeset
    41
from openstack_dashboard.dashboards.project.networks.ports.tables import \
f3a6bd7bd4a6 18545343 nova-conductor's method shouldn't try to enable mysql
Drew Fisher <drew.fisher@oracle.com>
parents:
diff changeset
    42
    PortsTable as projectPortsTable
f3a6bd7bd4a6 18545343 nova-conductor's method shouldn't try to enable mysql
Drew Fisher <drew.fisher@oracle.com>
parents:
diff changeset
    43
from openstack_dashboard.dashboards.project.networks.subnets.tables import \
f3a6bd7bd4a6 18545343 nova-conductor's method shouldn't try to enable mysql
Drew Fisher <drew.fisher@oracle.com>
parents:
diff changeset
    44
    DeleteSubnet as projectDeleteSubnet
f3a6bd7bd4a6 18545343 nova-conductor's method shouldn't try to enable mysql
Drew Fisher <drew.fisher@oracle.com>
parents:
diff changeset
    45
from openstack_dashboard.dashboards.project.networks.subnets.tables import \
f3a6bd7bd4a6 18545343 nova-conductor's method shouldn't try to enable mysql
Drew Fisher <drew.fisher@oracle.com>
parents:
diff changeset
    46
    SubnetsTable as projectSubnetsTable
f3a6bd7bd4a6 18545343 nova-conductor's method shouldn't try to enable mysql
Drew Fisher <drew.fisher@oracle.com>
parents:
diff changeset
    47
from openstack_dashboard.dashboards.project.networks.tables import \
f3a6bd7bd4a6 18545343 nova-conductor's method shouldn't try to enable mysql
Drew Fisher <drew.fisher@oracle.com>
parents:
diff changeset
    48
    CreateSubnet as projectCreateSubnet
f3a6bd7bd4a6 18545343 nova-conductor's method shouldn't try to enable mysql
Drew Fisher <drew.fisher@oracle.com>
parents:
diff changeset
    49
from openstack_dashboard.dashboards.project.networks.tables import \
f3a6bd7bd4a6 18545343 nova-conductor's method shouldn't try to enable mysql
Drew Fisher <drew.fisher@oracle.com>
parents:
diff changeset
    50
    DeleteNetwork as projectDeleteNetwork
f3a6bd7bd4a6 18545343 nova-conductor's method shouldn't try to enable mysql
Drew Fisher <drew.fisher@oracle.com>
parents:
diff changeset
    51
from openstack_dashboard.dashboards.project.networks.tables import \
f3a6bd7bd4a6 18545343 nova-conductor's method shouldn't try to enable mysql
Drew Fisher <drew.fisher@oracle.com>
parents:
diff changeset
    52
    NetworksTable as projectNetworksTable
f3a6bd7bd4a6 18545343 nova-conductor's method shouldn't try to enable mysql
Drew Fisher <drew.fisher@oracle.com>
parents:
diff changeset
    53
from openstack_dashboard.dashboards.project.networks.workflows import \
f3a6bd7bd4a6 18545343 nova-conductor's method shouldn't try to enable mysql
Drew Fisher <drew.fisher@oracle.com>
parents:
diff changeset
    54
    CreateNetworkInfoAction, CreateSubnetDetailAction, CreateSubnetInfoAction
f3a6bd7bd4a6 18545343 nova-conductor's method shouldn't try to enable mysql
Drew Fisher <drew.fisher@oracle.com>
parents:
diff changeset
    55
1944
56ac2df1785b PSARC/2014/207 OpenStack Glance Update to Havana
Drew Fisher <drew.fisher@oracle.com>
parents: 1820
diff changeset
    56
# remove VolumeOptions and PostCreationStep from LaunchInstance
1970
f37782924749 19056291 A couple of links to zone consoles still exist
Drew Fisher <drew.fisher@oracle.com>
parents: 1944
diff changeset
    57
create_instance.LaunchInstance.default_steps = (
f37782924749 19056291 A couple of links to zone consoles still exist
Drew Fisher <drew.fisher@oracle.com>
parents: 1944
diff changeset
    58
    create_instance.SelectProjectUser,
f37782924749 19056291 A couple of links to zone consoles still exist
Drew Fisher <drew.fisher@oracle.com>
parents: 1944
diff changeset
    59
    create_instance.SetInstanceDetails,
f37782924749 19056291 A couple of links to zone consoles still exist
Drew Fisher <drew.fisher@oracle.com>
parents: 1944
diff changeset
    60
    create_instance.SetAccessControls,
f37782924749 19056291 A couple of links to zone consoles still exist
Drew Fisher <drew.fisher@oracle.com>
parents: 1944
diff changeset
    61
    create_instance.SetNetwork
f37782924749 19056291 A couple of links to zone consoles still exist
Drew Fisher <drew.fisher@oracle.com>
parents: 1944
diff changeset
    62
)
1820
f3a6bd7bd4a6 18545343 nova-conductor's method shouldn't try to enable mysql
Drew Fisher <drew.fisher@oracle.com>
parents:
diff changeset
    63
1944
56ac2df1785b PSARC/2014/207 OpenStack Glance Update to Havana
Drew Fisher <drew.fisher@oracle.com>
parents: 1820
diff changeset
    64
# Remove the Security Groups tab from Project/Access and Security
56ac2df1785b PSARC/2014/207 OpenStack Glance Update to Havana
Drew Fisher <drew.fisher@oracle.com>
parents: 1820
diff changeset
    65
AccessAndSecurityTabs.tabs = (KeypairsTab, FloatingIPsTab, APIAccessTab)
56ac2df1785b PSARC/2014/207 OpenStack Glance Update to Havana
Drew Fisher <drew.fisher@oracle.com>
parents: 1820
diff changeset
    66
1820
f3a6bd7bd4a6 18545343 nova-conductor's method shouldn't try to enable mysql
Drew Fisher <drew.fisher@oracle.com>
parents:
diff changeset
    67
# remove the 'Console' tab from Instance Detail
f3a6bd7bd4a6 18545343 nova-conductor's method shouldn't try to enable mysql
Drew Fisher <drew.fisher@oracle.com>
parents:
diff changeset
    68
InstanceDetailTabs.tabs = (OverviewTab, LogTab)
f3a6bd7bd4a6 18545343 nova-conductor's method shouldn't try to enable mysql
Drew Fisher <drew.fisher@oracle.com>
parents:
diff changeset
    69
1970
f37782924749 19056291 A couple of links to zone consoles still exist
Drew Fisher <drew.fisher@oracle.com>
parents: 1944
diff changeset
    70
# remove the 'Console' option in the Admin Instances pulldown by removing the
f37782924749 19056291 A couple of links to zone consoles still exist
Drew Fisher <drew.fisher@oracle.com>
parents: 1944
diff changeset
    71
# action for project_tables.ConsoleLink
f37782924749 19056291 A couple of links to zone consoles still exist
Drew Fisher <drew.fisher@oracle.com>
parents: 1944
diff changeset
    72
admin_tables.AdminInstancesTable._meta.row_actions = (
f37782924749 19056291 A couple of links to zone consoles still exist
Drew Fisher <drew.fisher@oracle.com>
parents: 1944
diff changeset
    73
    project_tables.ConfirmResize,
f37782924749 19056291 A couple of links to zone consoles still exist
Drew Fisher <drew.fisher@oracle.com>
parents: 1944
diff changeset
    74
    project_tables.RevertResize,
f37782924749 19056291 A couple of links to zone consoles still exist
Drew Fisher <drew.fisher@oracle.com>
parents: 1944
diff changeset
    75
    admin_tables.AdminEditInstance,
f37782924749 19056291 A couple of links to zone consoles still exist
Drew Fisher <drew.fisher@oracle.com>
parents: 1944
diff changeset
    76
    project_tables.LogLink,
f37782924749 19056291 A couple of links to zone consoles still exist
Drew Fisher <drew.fisher@oracle.com>
parents: 1944
diff changeset
    77
    project_tables.CreateSnapshot,
f37782924749 19056291 A couple of links to zone consoles still exist
Drew Fisher <drew.fisher@oracle.com>
parents: 1944
diff changeset
    78
    project_tables.TogglePause,
f37782924749 19056291 A couple of links to zone consoles still exist
Drew Fisher <drew.fisher@oracle.com>
parents: 1944
diff changeset
    79
    project_tables.ToggleSuspend,
f37782924749 19056291 A couple of links to zone consoles still exist
Drew Fisher <drew.fisher@oracle.com>
parents: 1944
diff changeset
    80
    admin_tables.MigrateInstance,
f37782924749 19056291 A couple of links to zone consoles still exist
Drew Fisher <drew.fisher@oracle.com>
parents: 1944
diff changeset
    81
    project_tables.SoftRebootInstance,
f37782924749 19056291 A couple of links to zone consoles still exist
Drew Fisher <drew.fisher@oracle.com>
parents: 1944
diff changeset
    82
    project_tables.RebootInstance,
f37782924749 19056291 A couple of links to zone consoles still exist
Drew Fisher <drew.fisher@oracle.com>
parents: 1944
diff changeset
    83
    project_tables.TerminateInstance
f37782924749 19056291 A couple of links to zone consoles still exist
Drew Fisher <drew.fisher@oracle.com>
parents: 1944
diff changeset
    84
)
f37782924749 19056291 A couple of links to zone consoles still exist
Drew Fisher <drew.fisher@oracle.com>
parents: 1944
diff changeset
    85
1820
f3a6bd7bd4a6 18545343 nova-conductor's method shouldn't try to enable mysql
Drew Fisher <drew.fisher@oracle.com>
parents:
diff changeset
    86
# Disable 'admin_state' and 'shared' checkboxes on Create Networks
f3a6bd7bd4a6 18545343 nova-conductor's method shouldn't try to enable mysql
Drew Fisher <drew.fisher@oracle.com>
parents:
diff changeset
    87
CreateNetwork.base_fields['admin_state'].widget.attrs['disabled'] = True
f3a6bd7bd4a6 18545343 nova-conductor's method shouldn't try to enable mysql
Drew Fisher <drew.fisher@oracle.com>
parents:
diff changeset
    88
CreateNetwork.base_fields['shared'].widget.attrs['disabled'] = True
f3a6bd7bd4a6 18545343 nova-conductor's method shouldn't try to enable mysql
Drew Fisher <drew.fisher@oracle.com>
parents:
diff changeset
    89
f3a6bd7bd4a6 18545343 nova-conductor's method shouldn't try to enable mysql
Drew Fisher <drew.fisher@oracle.com>
parents:
diff changeset
    90
# Disable 'admin_state' checkbox on Create Port
f3a6bd7bd4a6 18545343 nova-conductor's method shouldn't try to enable mysql
Drew Fisher <drew.fisher@oracle.com>
parents:
diff changeset
    91
CreatePort.base_fields['admin_state'].widget.attrs['disabled'] = True
f3a6bd7bd4a6 18545343 nova-conductor's method shouldn't try to enable mysql
Drew Fisher <drew.fisher@oracle.com>
parents:
diff changeset
    92
f3a6bd7bd4a6 18545343 nova-conductor's method shouldn't try to enable mysql
Drew Fisher <drew.fisher@oracle.com>
parents:
diff changeset
    93
# Remove the ability to Update Ports
f3a6bd7bd4a6 18545343 nova-conductor's method shouldn't try to enable mysql
Drew Fisher <drew.fisher@oracle.com>
parents:
diff changeset
    94
PortsTable._meta.row_actions = (DeletePort,)
f3a6bd7bd4a6 18545343 nova-conductor's method shouldn't try to enable mysql
Drew Fisher <drew.fisher@oracle.com>
parents:
diff changeset
    95
f3a6bd7bd4a6 18545343 nova-conductor's method shouldn't try to enable mysql
Drew Fisher <drew.fisher@oracle.com>
parents:
diff changeset
    96
# Remove the ability to Update Subnets
f3a6bd7bd4a6 18545343 nova-conductor's method shouldn't try to enable mysql
Drew Fisher <drew.fisher@oracle.com>
parents:
diff changeset
    97
SubnetsTable._meta.row_actions = (DeleteSubnet,)
f3a6bd7bd4a6 18545343 nova-conductor's method shouldn't try to enable mysql
Drew Fisher <drew.fisher@oracle.com>
parents:
diff changeset
    98
f3a6bd7bd4a6 18545343 nova-conductor's method shouldn't try to enable mysql
Drew Fisher <drew.fisher@oracle.com>
parents:
diff changeset
    99
# Remove the ability to Edit Networks
f3a6bd7bd4a6 18545343 nova-conductor's method shouldn't try to enable mysql
Drew Fisher <drew.fisher@oracle.com>
parents:
diff changeset
   100
NetworksTable._meta.row_actions = (DeleteNetwork,)
f3a6bd7bd4a6 18545343 nova-conductor's method shouldn't try to enable mysql
Drew Fisher <drew.fisher@oracle.com>
parents:
diff changeset
   101
f3a6bd7bd4a6 18545343 nova-conductor's method shouldn't try to enable mysql
Drew Fisher <drew.fisher@oracle.com>
parents:
diff changeset
   102
# Remove the ability to Update project Ports
f3a6bd7bd4a6 18545343 nova-conductor's method shouldn't try to enable mysql
Drew Fisher <drew.fisher@oracle.com>
parents:
diff changeset
   103
projectPortsTable._meta.row_actions = ()
f3a6bd7bd4a6 18545343 nova-conductor's method shouldn't try to enable mysql
Drew Fisher <drew.fisher@oracle.com>
parents:
diff changeset
   104
f3a6bd7bd4a6 18545343 nova-conductor's method shouldn't try to enable mysql
Drew Fisher <drew.fisher@oracle.com>
parents:
diff changeset
   105
# Remove the ability to Update project Subnets
f3a6bd7bd4a6 18545343 nova-conductor's method shouldn't try to enable mysql
Drew Fisher <drew.fisher@oracle.com>
parents:
diff changeset
   106
projectSubnetsTable._meta.row_actions = (projectDeleteSubnet,)
f3a6bd7bd4a6 18545343 nova-conductor's method shouldn't try to enable mysql
Drew Fisher <drew.fisher@oracle.com>
parents:
diff changeset
   107
f3a6bd7bd4a6 18545343 nova-conductor's method shouldn't try to enable mysql
Drew Fisher <drew.fisher@oracle.com>
parents:
diff changeset
   108
# Remove the ability to Edit project Networks
f3a6bd7bd4a6 18545343 nova-conductor's method shouldn't try to enable mysql
Drew Fisher <drew.fisher@oracle.com>
parents:
diff changeset
   109
projectNetworksTable._meta.row_actions = (projectCreateSubnet,
f3a6bd7bd4a6 18545343 nova-conductor's method shouldn't try to enable mysql
Drew Fisher <drew.fisher@oracle.com>
parents:
diff changeset
   110
                                          projectDeleteNetwork)
f3a6bd7bd4a6 18545343 nova-conductor's method shouldn't try to enable mysql
Drew Fisher <drew.fisher@oracle.com>
parents:
diff changeset
   111
f3a6bd7bd4a6 18545343 nova-conductor's method shouldn't try to enable mysql
Drew Fisher <drew.fisher@oracle.com>
parents:
diff changeset
   112
# Disable 'admin_state' checkbox on Create project Networks
f3a6bd7bd4a6 18545343 nova-conductor's method shouldn't try to enable mysql
Drew Fisher <drew.fisher@oracle.com>
parents:
diff changeset
   113
CreateNetworkInfoAction.base_fields['admin_state'].widget.attrs['disabled'] = \
f3a6bd7bd4a6 18545343 nova-conductor's method shouldn't try to enable mysql
Drew Fisher <drew.fisher@oracle.com>
parents:
diff changeset
   114
    True
f3a6bd7bd4a6 18545343 nova-conductor's method shouldn't try to enable mysql
Drew Fisher <drew.fisher@oracle.com>
parents:
diff changeset
   115
f3a6bd7bd4a6 18545343 nova-conductor's method shouldn't try to enable mysql
Drew Fisher <drew.fisher@oracle.com>
parents:
diff changeset
   116
# Disable 'no_gateway' checkbox on Create project Networks
f3a6bd7bd4a6 18545343 nova-conductor's method shouldn't try to enable mysql
Drew Fisher <drew.fisher@oracle.com>
parents:
diff changeset
   117
CreateSubnetInfoAction.base_fields['no_gateway'].widget.attrs['disabled'] = \
f3a6bd7bd4a6 18545343 nova-conductor's method shouldn't try to enable mysql
Drew Fisher <drew.fisher@oracle.com>
parents:
diff changeset
   118
    True
f3a6bd7bd4a6 18545343 nova-conductor's method shouldn't try to enable mysql
Drew Fisher <drew.fisher@oracle.com>
parents:
diff changeset
   119
1989
ae222899e270 19061438 checkboxes related with 'create volume from Image' in the Horizon don't work
Strony <strony.zhang@oracle.com>
parents: 1970
diff changeset
   120
# Remove 'CreateVolumeFromImage' checkbox from
ae222899e270 19061438 checkboxes related with 'create volume from Image' in the Horizon don't work
Strony <strony.zhang@oracle.com>
parents: 1970
diff changeset
   121
# Project/Images & Snapshots/Actions
ae222899e270 19061438 checkboxes related with 'create volume from Image' in the Horizon don't work
Strony <strony.zhang@oracle.com>
parents: 1970
diff changeset
   122
ImagesTable._meta.row_actions = (LaunchImage, EditImage, DeleteImage,)
ae222899e270 19061438 checkboxes related with 'create volume from Image' in the Horizon don't work
Strony <strony.zhang@oracle.com>
parents: 1970
diff changeset
   123
1820
f3a6bd7bd4a6 18545343 nova-conductor's method shouldn't try to enable mysql
Drew Fisher <drew.fisher@oracle.com>
parents:
diff changeset
   124
# change 'allocation_pools' and 'host_routes' to readonly
f3a6bd7bd4a6 18545343 nova-conductor's method shouldn't try to enable mysql
Drew Fisher <drew.fisher@oracle.com>
parents:
diff changeset
   125
base_fields = CreateSubnetDetailAction.base_fields
f3a6bd7bd4a6 18545343 nova-conductor's method shouldn't try to enable mysql
Drew Fisher <drew.fisher@oracle.com>
parents:
diff changeset
   126
base_fields['allocation_pools'].widget.attrs['readonly'] = 'readonly'
f3a6bd7bd4a6 18545343 nova-conductor's method shouldn't try to enable mysql
Drew Fisher <drew.fisher@oracle.com>
parents:
diff changeset
   127
base_fields['host_routes'].widget.attrs['readonly'] = 'readonly'