MCPcopy Create free account
hub / github.com/PiSCSI/piscsi / admin

Function admin

python/web/src/web.py:324–342  ·  view source on GitHub ↗

Sets up the data structures and kicks off the rendering of the system admin page

()

Source from the content-addressed store, hash-verified

322
323@APP.route("/sys/admin", methods=["GET"])
324def admin():
325 """
326 Sets up the data structures and kicks off the rendering of the system admin page
327 """
328 server_info = piscsi_cmd.get_server_info()
329
330 return response(
331 template="admin.html",
332 page_title=_("PiSCSI System Administration"),
333 log_levels=server_info["log_levels"],
334 current_log_level=server_info["current_log_level"],
335 locales=get_supported_locales(),
336 themes=TEMPLATE_THEMES,
337 netatalk_configured=sys_cmd.running_proc("afpd"),
338 samba_configured=sys_cmd.running_proc("smbd"),
339 ftp_configured=sys_cmd.running_proc("vsftpd"),
340 macproxy_configured=sys_cmd.running_proc("macproxy"),
341 webmin_configured=sys_cmd.running_proc("miniserv.pl"),
342 )
343
344
345@APP.route("/upload", methods=["GET"])

Callers

nothing calls this directly

Calls 4

responseFunction · 0.85
get_supported_localesFunction · 0.85
running_procMethod · 0.80
get_server_infoMethod · 0.45

Tested by

no test coverage detected