479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
|
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
|
+
+
+
+
|
if "name" in opt and "value" in opt:
if opt["name"] not in conf_options:
# typemap "bool" and "int" here
if opt["type"] in ("bool", "boolean"):
val = opt["value"].lower() in ("1", "true", "yes", "on")
elif opt["type"] in ("int", "integer", "numeric"):
val = int(opt["value"])
elif opt["type"] in ("array", "table", "list"):
val = [ opt["value"].split(",") ]
elif opt["type"] in ("dict"):
val = dict(opt["value"].split(","))
else:
val = str(opt["value"])
conf_options[opt["name"]] = val
# Initial plugin activation status
if module and module not in conf_plugins:
conf_plugins[module] = meta.get("priority") in (
"core", "builtin", "always", "default", "standard"
)
|