updating tox pep8 issues
Closes-Bug: #1453937 Change-Id: I5ab0b7d615130f93ee98517d2b5bdbe9f6692360
This commit is contained in:
parent
7ce7e401f8
commit
c510778eb3
|
@ -14,13 +14,13 @@
|
||||||
|
|
||||||
from __future__ import absolute_import
|
from __future__ import absolute_import
|
||||||
|
|
||||||
from horizon import exceptions
|
|
||||||
from django.conf import settings
|
|
||||||
import logging
|
|
||||||
|
|
||||||
from designateclient.v1 import Client # noqa
|
from designateclient.v1 import Client # noqa
|
||||||
from designateclient.v1.domains import Domain # noqa
|
from designateclient.v1.domains import Domain # noqa
|
||||||
from designateclient.v1.records import Record # noqa
|
from designateclient.v1.records import Record # noqa
|
||||||
|
from django.conf import settings # noqa
|
||||||
|
|
||||||
|
from horizon import exceptions
|
||||||
|
import logging
|
||||||
|
|
||||||
from openstack_dashboard.api.base import url_for # noqa
|
from openstack_dashboard.api.base import url_for # noqa
|
||||||
|
|
||||||
|
|
|
@ -15,13 +15,15 @@ import functools
|
||||||
import logging
|
import logging
|
||||||
import re
|
import re
|
||||||
|
|
||||||
|
from designateclient import exceptions as designate_exceptions
|
||||||
from django.core.exceptions import ValidationError # noqa
|
from django.core.exceptions import ValidationError # noqa
|
||||||
from django.core import validators
|
from django.core import validators
|
||||||
from django.utils.translation import ugettext_lazy as _
|
from django.utils.translation import ugettext_lazy as _ # noqa
|
||||||
|
|
||||||
from horizon import forms
|
from horizon import forms
|
||||||
from horizon import messages
|
from horizon import messages
|
||||||
|
|
||||||
from designatedashboard import api
|
from designatedashboard import api
|
||||||
from designateclient import exceptions as designate_exceptions
|
|
||||||
|
|
||||||
|
|
||||||
LOG = logging.getLogger(__name__)
|
LOG = logging.getLogger(__name__)
|
||||||
|
@ -56,7 +58,7 @@ def handle_exc(func):
|
||||||
msg += " (Request ID: %(request_id)s"
|
msg += " (Request ID: %(request_id)s"
|
||||||
data["request_id"] = ex.request_id
|
data["request_id"] = ex.request_id
|
||||||
|
|
||||||
form.api_error(_(msg) % data)
|
form.api_error(_(msg) % data) # noqa
|
||||||
|
|
||||||
return False
|
return False
|
||||||
except Exception:
|
except Exception:
|
||||||
|
|
|
@ -16,7 +16,6 @@ import logging
|
||||||
from django.core import urlresolvers
|
from django.core import urlresolvers
|
||||||
from django.utils.translation import ugettext_lazy as _ # noqa
|
from django.utils.translation import ugettext_lazy as _ # noqa
|
||||||
|
|
||||||
from horizon import exceptions
|
|
||||||
from horizon import tables
|
from horizon import tables
|
||||||
|
|
||||||
from designatedashboard import api
|
from designatedashboard import api
|
||||||
|
|
|
@ -15,10 +15,10 @@ from django.conf.urls import url, patterns # noqa
|
||||||
|
|
||||||
from .views import CreateDomainView # noqa
|
from .views import CreateDomainView # noqa
|
||||||
from .views import CreateRecordView # noqa
|
from .views import CreateRecordView # noqa
|
||||||
|
from .views import DomainDetailView # noqa
|
||||||
from .views import IndexView # noqa
|
from .views import IndexView # noqa
|
||||||
from .views import RecordsView # noqa
|
from .views import RecordsView # noqa
|
||||||
from .views import UpdateDomainView # noqa
|
from .views import UpdateDomainView # noqa
|
||||||
from .views import DomainDetailView # noqa
|
|
||||||
from .views import UpdateRecordView # noqa
|
from .views import UpdateRecordView # noqa
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -17,7 +17,7 @@ from django.utils.translation import ugettext_lazy as _ # noqa
|
||||||
from horizon import exceptions
|
from horizon import exceptions
|
||||||
from horizon import forms
|
from horizon import forms
|
||||||
from horizon import tables
|
from horizon import tables
|
||||||
from horizon.views import HorizonTemplateView
|
from horizon.views import HorizonTemplateView # noqa
|
||||||
|
|
||||||
from designatedashboard import api
|
from designatedashboard import api
|
||||||
|
|
||||||
|
|
|
@ -13,6 +13,7 @@
|
||||||
# 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.
|
||||||
from designateclient import exceptions as designateclient
|
from designateclient import exceptions as designateclient
|
||||||
|
|
||||||
from openstack_dashboard import exceptions
|
from openstack_dashboard import exceptions
|
||||||
|
|
||||||
NOT_FOUND = exceptions.NOT_FOUND + (
|
NOT_FOUND = exceptions.NOT_FOUND + (
|
||||||
|
|
|
@ -15,7 +15,7 @@
|
||||||
|
|
||||||
import os
|
import os
|
||||||
|
|
||||||
from django.utils.translation import ugettext as _
|
from django.utils.translation import ugettext as _ # noqa
|
||||||
|
|
||||||
from horizon.test.settings import * # noqa
|
from horizon.test.settings import * # noqa
|
||||||
from horizon.utils import secret_key as secret_key_utils
|
from horizon.utils import secret_key as secret_key_utils
|
||||||
|
|
Loading…
Reference in New Issue