mirror of
https://github.com/elem74/fabaccess-config-generator.git
synced 2025-04-20 10:16:26 +02:00
rename load_actors to load_plugins to have common use for actors and initiators
This commit is contained in:
parent
7aaf93709c
commit
4e0e431dc0
@ -20,9 +20,9 @@ else:
|
||||
settings = config_load('./settings.ini', 'generator')
|
||||
|
||||
if os.path.isfile('actors.ini') == True:
|
||||
actor_library = load_actors('actors.ini')
|
||||
actor_library = load_plugins('actors.ini')
|
||||
else:
|
||||
actor_library = load_actors('./actors.ini')
|
||||
actor_library = load_plugins('./actors.ini')
|
||||
|
||||
string_userhandle = settings["string_userhandle"] + ' '
|
||||
string_adminhandle = settings["string_adminhandle"] + ' '
|
||||
|
@ -1,5 +1,5 @@
|
||||
from generator.helpers import config_load
|
||||
from generator.helpers import load_actors
|
||||
from generator.helpers import load_plugins
|
||||
|
||||
# Icons für Mermaid-Code
|
||||
|
||||
@ -41,6 +41,9 @@ csv_match = {
|
||||
"Aktor ID": "actor_id",
|
||||
"Aktor Modul": "actor_module",
|
||||
"Aktor Typ": "actor_type",
|
||||
"Initiator ID": "initiator_id",
|
||||
"Initiator Modul": "initiator_module",
|
||||
"Initiator Typ": "initiator_type",
|
||||
"ID Alternativrolle": "customrole_id",
|
||||
"Name Alternativrolle": "customrole_name",
|
||||
}
|
||||
|
@ -191,7 +191,7 @@ def config_load(file, section = 'all'):
|
||||
return dict_settings
|
||||
|
||||
# Actor-Library einlesen
|
||||
def load_actors(file):
|
||||
def load_plugins(file):
|
||||
dict_actors = {}
|
||||
|
||||
filehandle = app_path + f'/{file}'
|
||||
|
Loading…
x
Reference in New Issue
Block a user