1
0
mirror of https://github.com/dkmstr/openuds.git synced 2025-02-02 09:47:13 +03:00

Refactor variable names in Authenticator class

This commit is contained in:
Adolfo Gómez García 2024-09-13 19:04:13 +02:00
parent 3bbf9ec99a
commit 33508e0ba0
No known key found for this signature in database
GPG Key ID: DD1ABF20724CDA23
2 changed files with 4 additions and 3 deletions

View File

@ -662,13 +662,14 @@ class Authenticator(Module):
This will be invoked from admin interface, when admin wants to create a new group.
modified groupData will be used to store values at database.
modified group_data will be used to store values at database.
Args:
groupData: Contains data received from user directly, that is a dictionary
group_data: Contains data received from interface directly, that is a dictionary
with at least: name, comments and state. (State.ACTIVE, State.INACTIVE)
This is an in/out parameter, so you can modify, for example,
**comments**
(it's the "fields" from the admin form)
Returns:
Raises an exception if things didn't went fine,

View File

@ -294,7 +294,7 @@ class Service(Module):
if self.userservices_limit == 0:
self.userservices_limit = consts.UNLIMITED
elif callable(services_limit):
self.userservices_limit = services_limit()
self.userservices_limit = typing.cast(collections.abc.Callable[..., int], services_limit)()
else:
self.userservices_limit = consts.UNLIMITED
except Exception: