def _details(daemon_id): return render_template('_details.html', daemon_id=daemon_id, run_file_content=core.run_file(daemon_id), run_user_file_content=core.run_file(daemon_id, run_user=True), run_log_file=core.log_file_locations(daemon_id, 'run_log')[0], daemon_log_file=core.log_file_locations(daemon_id, 'daemon_log')[0], autostart=core.daemon_autostart(daemon_id))
def _details(daemon_id): return render_template( '_details.html', daemon_id=daemon_id, run_file_content=core.run_file(daemon_id), run_user_file_content=core.run_file(daemon_id, run_user=True), run_log_file=core.log_file_locations(daemon_id, 'run_log')[0], daemon_log_file=core.log_file_locations(daemon_id, 'daemon_log')[0], autostart=core.daemon_autostart(daemon_id))
def daemon_action_log_file_locations(daemon_id): log_names = ['run_log', 'daemon_log'] if request.method == 'GET': log_locations = core.log_file_locations(daemon_id, *log_names) data = {log_names[i]: log_locations[i] for i in range(len(log_locations))} return jsonify(data) else: kwargs = {n: request.form[n] for n in log_names} core.set_log_file_locations(daemon_id, **kwargs) return Response(status=204)
def daemon_action_log_file_locations(daemon_id): log_names = ['run_log', 'daemon_log'] if request.method == 'GET': log_locations = core.log_file_locations(daemon_id, *log_names) data = { log_names[i]: log_locations[i] for i in range(len(log_locations)) } return jsonify(data) else: kwargs = {n: request.form[n] for n in log_names} core.set_log_file_locations(daemon_id, **kwargs) return Response(status=204)