MCPcopy Index your code
hub / github.com/pgadmin-org/pgadmin4 / check_user_ip_req

Function check_user_ip_req

web/pgadmin/tools/debugger/__init__.py:563–586  ·  view source on GitHub ↗

Check if user input is required or not for debugger. :param r_set: :param data: :return:

(r_set, data)

Source from the content-addressed store, hash-verified

561
562
563def check_user_ip_req(r_set, data):
564 """
565 Check if user input is required or not for debugger.
566 :param r_set:
567 :param data:
568 :return:
569 """
570 if not r_set['rows'][0]['proargtypenames']:
571 return False
572
573 if r_set['rows'][0]['pkg'] != 0 and \
574 r_set['rows'][0]['pkgconsoid'] != 0:
575 data['require_input'] = True
576
577 if r_set['rows'][0]['proargmodes']:
578 pro_arg_modes = r_set['rows'][0]['proargmodes'].split(",")
579 for pr_arg_mode in pro_arg_modes:
580 if pr_arg_mode == 'o' or pr_arg_mode == 't':
581 data['require_input'] = False
582 else:
583 data['require_input'] = True
584 break
585
586 return data['require_input']
587
588
589@blueprint.route('/direct/<int:trans_id>', methods=['GET'], endpoint='direct')

Callers 1

init_functionFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected