import json from appPublic.registerfunction import RegisterFunction from appPublic.log import debug rf = RegisterFunction() funcs = list(rf.registKW.keys()) debug(f'check_rf: Registered functions: {funcs}') # Try to call password directly pw_func = rf.get('password') debug(f'check_rf: password function = {pw_func}') result = { 'functions': funcs, 'has_password': pw_func is not None } return json.dumps(result, ensure_ascii=False)