diff --git a/gbpui/client.py b/gbpui/client.py index c9979e4..1dfe5f9 100644 --- a/gbpui/client.py +++ b/gbpui/client.py @@ -186,7 +186,7 @@ class ServiceProfile(neutron.NeutronAPIDictWrapper): def policy_target_create(request, **kwargs): body = {'policy_target_group': kwargs} policy_target = gbpclient(request).create_policy_target_group( - body).get('endpoint_group') + body).get('policy_target_group') return PTG(policy_target) @@ -237,7 +237,7 @@ def policy_target_update(request, policy_target_id, **kwargs): def ext_policy_target_create(request, **kwargs): body = {'external_policy': kwargs} policy_target = gbpclient(request).create_external_policy( - body).get('endpoint_group') + body).get('external_policy') return ExternalPTG(policy_target) diff --git a/gbpui/static/dashboard/js/horizon.scspec.js b/gbpui/static/dashboard/js/horizon.scspec.js index fdcfbf1..2bda7c0 100644 --- a/gbpui/static/dashboard/js/horizon.scspec.js +++ b/gbpui/static/dashboard/js/horizon.scspec.js @@ -22,7 +22,7 @@ horizon.Node = { $(this.get_node_element("")).each(function () { var $this = $(this); var $input = $this.children("input"); - var name = horizon.escape_html($this.text().replace(/^\s+/, "")); + var name = horizon.string.escapeHtml($this.text().replace(/^\s+/, "")); var node_property = { "name": name, "id": $input.attr("id"), diff --git a/setup.py b/setup.py index 70c2b3f..782bb21 100755 --- a/setup.py +++ b/setup.py @@ -1,4 +1,3 @@ -#!/usr/bin/env python # Copyright (c) 2013 Hewlett-Packard Development Company, L.P. # # Licensed under the Apache License, Version 2.0 (the "License"); @@ -17,6 +16,14 @@ # THIS FILE IS MANAGED BY THE GLOBAL REQUIREMENTS REPO - DO NOT EDIT import setuptools +# In python < 2.7.4, a lazy loading of package `pbr` will break +# setuptools if some other modules registered functions in `atexit`. +# solution from: http://bugs.python.org/issue15881#msg170215 +try: + import multiprocessing # noqa +except ImportError: + pass + setuptools.setup( - setup_requires=['pbr'], + setup_requires=['pbr>=1.8'], pbr=True) diff --git a/test-requirements.txt b/test-requirements.txt index 4ac807f..77177b9 100644 --- a/test-requirements.txt +++ b/test-requirements.txt @@ -8,23 +8,23 @@ # # Hacking should appear first in case something else depends on pep8 --e git://github.com/openstack/horizon.git@stable/liberty#egg=horizon -hacking>=0.10.0,<0.11 +-e git://github.com/openstack/horizon.git@master#egg=horizon +hacking<0.11,>=0.10.0 # -coverage>=3.6 -django-nose>=1.2 -mock>=1.2 -mox3>=0.7.0 -nodeenv>=0.9.4 # BSD License -nose -nose-exclude -nosehtmloutput>=0.0.3 -nosexcover -openstack.nose-plugin>=0.7 +coverage>=3.6 # Apache-2.0 +django-nose>=1.2 # BSD +mock>=1.2 # BSD +mox3>=0.7.0 # Apache-2.0 +nodeenv>=0.9.4 # BSD License # BSD +nose # LGPL +nose-exclude # LGPL +nosehtmloutput>=0.0.3 # Apache-2.0 +nosexcover # BSD +openstack.nose-plugin>=0.7 # Apache-2.0 oslosphinx!=3.4.0,>=2.5.0 # Apache-2.0 reno>=0.1.1 # Apache2 -selenium -sphinx!=1.2.0,!=1.3b1,<1.3,>=1.1.2 -testtools>=1.4.0 +selenium>=2.50.1 # Apache-2.0 +sphinx!=1.2.0,!=1.3b1,<1.3,>=1.1.2 # BSD +testtools>=1.4.0 # MIT # This also needs xvfb library installed on your OS xvfbwrapper>=0.1.3 #license: MIT