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:
parent
3bbf9ec99a
commit
33508e0ba0
@ -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,
|
||||
|
@ -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:
|
||||
|
Loading…
x
Reference in New Issue
Block a user