misc: pylint fix no-self-argument (#52222)

This commit is contained in:
Lauréline Guérin 2021-03-22 15:25:26 +01:00
parent ceee15b3a1
commit 87e806a894
No known key found for this signature in database
GPG Key ID: 1FAB9B9B4F93D473
1 changed files with 10 additions and 10 deletions

View File

@ -3035,20 +3035,20 @@ class AnyFormData(SqlMixin):
_formdef_cache = {}
@classproperty
def _table_static_fields(cls):
if cls.__table_static_fields:
return cls.__table_static_fields
def _table_static_fields(self):
if self.__table_static_fields:
return self.__table_static_fields
from wcs.formdef import FormDef
fake_formdef = FormDef()
common_fields = get_view_fields(fake_formdef)
cls.__table_static_fields = [(x[1], x[0]) for x in common_fields]
cls.__table_static_fields.append(('criticality_level', 'criticality_level'))
cls.__table_static_fields.append(('geoloc_base_x', 'geoloc_base_x'))
cls.__table_static_fields.append(('geoloc_base_y', 'geoloc_base_y'))
cls.__table_static_fields.append(('concerned_roles_array', 'concerned_roles_array'))
cls.__table_static_fields.append(('anonymised', 'anonymised'))
return cls.__table_static_fields
self.__table_static_fields = [(x[1], x[0]) for x in common_fields]
self.__table_static_fields.append(('criticality_level', 'criticality_level'))
self.__table_static_fields.append(('geoloc_base_x', 'geoloc_base_x'))
self.__table_static_fields.append(('geoloc_base_y', 'geoloc_base_y'))
self.__table_static_fields.append(('concerned_roles_array', 'concerned_roles_array'))
self.__table_static_fields.append(('anonymised', 'anonymised'))
return self.__table_static_fields
@classmethod
def get_data_fields(cls):