1
0
mirror of https://github.com/dkmstr/openuds.git synced 2024-12-25 23:21:41 +03:00

Before moving userinterface _data dict to dataclass

This commit is contained in:
Adolfo Gómez García 2023-08-31 02:39:35 +02:00
parent f8bad512a5
commit 0f16e77b82
No known key found for this signature in database
GPG Key ID: DD1ABF20724CDA23
3 changed files with 2 additions and 7 deletions

View File

@ -43,9 +43,7 @@ import typing
import collections.abc
import abc
from django.utils.translation import get_language
from django.utils.translation import gettext as _
from django.utils.translation import gettext_noop
from uds.core import exceptions, types
from uds.core.managers.crypto import UDSK, CryptoManager
@ -1398,7 +1396,6 @@ class UserInterface(metaclass=UserInterfaceType):
obj: If any, object that will get its "initGui" invoked
This will only happen (not to be None) in Services.
"""
logger.debug('Active language for theGui translation: %s', get_language())
self.initGui() # We give the "oportunity" to fill necesary theGui data before providing it to client
res: typing.List[typing.MutableMapping[str, typing.Any]] = []

View File

@ -158,8 +158,8 @@ def deprecatedClassValue(newVarName: str) -> typing.Callable:
logger.warning(
'Use of deprecated class value %s from %s:%s. Use %s instead.',
self.fget.__name__,
caller[1],
caller[2],
caller.filename,
caller.lineno,
self.new_var_name,
)
except Exception:

View File

@ -70,5 +70,3 @@ class LogMaintenance(Job):
for record in models.Log.objects.filter(owner_id=owner_id, owner_type=owner_type).order_by('created', 'id')[: count - max_elements + 1]:
record.delete()
# class DelayedLog(Job):
# pass