pylint: fix bad-super-call
Change-Id: Ia81e5c8b77dbfcb48630b1736d581cdff73278ef
This commit is contained in:
parent
02a0f81f96
commit
f3bd271fc9
|
@ -12,7 +12,6 @@ disable=
|
||||||
# "E" Error for important programming issues (likely bugs)
|
# "E" Error for important programming issues (likely bugs)
|
||||||
access-member-before-definition,
|
access-member-before-definition,
|
||||||
assignment-from-no-return,
|
assignment-from-no-return,
|
||||||
bad-super-call,
|
|
||||||
import-error,
|
import-error,
|
||||||
logging-too-few-args,
|
logging-too-few-args,
|
||||||
method-hidden,
|
method-hidden,
|
||||||
|
|
|
@ -1032,7 +1032,8 @@ class HorizonSite(Site):
|
||||||
|
|
||||||
def __new__(cls, *args, **kwargs):
|
def __new__(cls, *args, **kwargs):
|
||||||
if not cls._instance:
|
if not cls._instance:
|
||||||
cls._instance = super(Site, cls).__new__(cls, *args, **kwargs)
|
cls._instance = super(HorizonSite, cls).__new__(cls,
|
||||||
|
*args, **kwargs)
|
||||||
return cls._instance
|
return cls._instance
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -50,7 +50,7 @@ class PasswordMixin(forms.SelfHandlingForm):
|
||||||
|
|
||||||
def clean(self):
|
def clean(self):
|
||||||
'''Check to make sure password fields match.'''
|
'''Check to make sure password fields match.'''
|
||||||
data = super(forms.Form, self).clean()
|
data = super(PasswordMixin, self).clean()
|
||||||
if 'password' in data and 'confirm_password' in data:
|
if 'password' in data and 'confirm_password' in data:
|
||||||
if data['password'] != data['confirm_password']:
|
if data['password'] != data['confirm_password']:
|
||||||
raise ValidationError(_('Passwords do not match.'))
|
raise ValidationError(_('Passwords do not match.'))
|
||||||
|
|
|
@ -67,7 +67,7 @@ class LaunchImageNG(LaunchImage):
|
||||||
|
|
||||||
def __init__(self, attrs=None, **kwargs):
|
def __init__(self, attrs=None, **kwargs):
|
||||||
kwargs['preempt'] = True
|
kwargs['preempt'] = True
|
||||||
super(LaunchImage, self).__init__(attrs, **kwargs)
|
super(LaunchImageNG, self).__init__(attrs, **kwargs)
|
||||||
|
|
||||||
def get_link_url(self, datum):
|
def get_link_url(self, datum):
|
||||||
imageId = self.table.get_object_id(datum)
|
imageId = self.table.get_object_id(datum)
|
||||||
|
|
|
@ -56,7 +56,7 @@ class LaunchSnapshotNG(LaunchSnapshot):
|
||||||
|
|
||||||
def __init__(self, attrs=None, **kwargs):
|
def __init__(self, attrs=None, **kwargs):
|
||||||
kwargs['preempt'] = True
|
kwargs['preempt'] = True
|
||||||
super(LaunchSnapshot, self).__init__(attrs, **kwargs)
|
super(LaunchSnapshotNG, self).__init__(attrs, **kwargs)
|
||||||
|
|
||||||
def get_link_url(self, datum):
|
def get_link_url(self, datum):
|
||||||
url = reverse(self.url)
|
url = reverse(self.url)
|
||||||
|
|
|
@ -74,7 +74,7 @@ class LaunchVolumeNG(LaunchVolume):
|
||||||
|
|
||||||
def __init__(self, attrs=None, **kwargs):
|
def __init__(self, attrs=None, **kwargs):
|
||||||
kwargs['preempt'] = True
|
kwargs['preempt'] = True
|
||||||
super(LaunchVolume, self).__init__(attrs, **kwargs)
|
super(LaunchVolumeNG, self).__init__(attrs, **kwargs)
|
||||||
|
|
||||||
def get_link_url(self, datum):
|
def get_link_url(self, datum):
|
||||||
url = reverse(self.url)
|
url = reverse(self.url)
|
||||||
|
|
Loading…
Reference in New Issue