misc: pylint fix no-self-argument (#52222)
This commit is contained in:
parent
ceee15b3a1
commit
87e806a894
20
wcs/sql.py
20
wcs/sql.py
|
@ -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):
|
||||
|
|
Loading…
Reference in New Issue