Rename pool-flavors module
'-' should not be used for python module name. https://www.python.org/dev/peps/pep-0008/#package-and-module-names Change-Id: Ia788a20180cac8e85002cfcd5cdacf7343578b5b
This commit is contained in:
parent
c5ddeb56c2
commit
7eaded2a04
@ -19,4 +19,4 @@ import horizon
|
|||||||
|
|
||||||
class PoolFlavors(horizon.Panel):
|
class PoolFlavors(horizon.Panel):
|
||||||
name = _("Pool Flavors")
|
name = _("Pool Flavors")
|
||||||
slug = "pool-flavors"
|
slug = "pool_flavors"
|
@ -12,11 +12,11 @@
|
|||||||
# See the License for the specific language governing permissions and
|
# See the License for the specific language governing permissions and
|
||||||
# limitations under the License.
|
# limitations under the License.
|
||||||
|
|
||||||
PANEL = 'pool-flavors'
|
PANEL = 'pool_flavors'
|
||||||
PANEL_GROUP = 'messaging'
|
PANEL_GROUP = 'messaging'
|
||||||
PANEL_DASHBOARD = 'admin'
|
PANEL_DASHBOARD = 'admin'
|
||||||
|
|
||||||
ADD_PANEL = ('zaqar_ui.content.pool-flavors.panel.PoolFlavors')
|
ADD_PANEL = ('zaqar_ui.content.pool_flavors.panel.PoolFlavors')
|
||||||
ADD_ANGULAR_MODULES = ['horizon.dashboard.admin.pool-flavors']
|
ADD_ANGULAR_MODULES = ['horizon.dashboard.admin.pool-flavors']
|
||||||
ADD_SCSS_FILES = ['dashboard/admin/pool-flavors/pool-flavors.scss']
|
ADD_SCSS_FILES = ['dashboard/admin/pool-flavors/pool-flavors.scss']
|
||||||
|
|
||||||
|
@ -94,7 +94,7 @@
|
|||||||
var path = $windowProvider.$get().STATIC_URL + 'dashboard/admin/pool-flavors/';
|
var path = $windowProvider.$get().STATIC_URL + 'dashboard/admin/pool-flavors/';
|
||||||
$provide.constant('horizon.dashboard.admin.pool-flavors.basePath', path);
|
$provide.constant('horizon.dashboard.admin.pool-flavors.basePath', path);
|
||||||
|
|
||||||
$routeProvider.when('/admin/pool-flavors', {
|
$routeProvider.when('/admin/pool_flavors', {
|
||||||
templateUrl: path + 'panel.html'
|
templateUrl: path + 'panel.html'
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user