settings_system_snapshot.mako
52 lines
| 1.0 KiB
| application/x-mako
|
MakoHtmlLexer
r1282 | ||||
<pre> | ||||
SYSTEM INFO | ||||
----------- | ||||
% for dt, dd, warn in c.data_items: | ||||
r3900 | ${'{:<60}'.format(dt.lower().replace(' ', '_'))}${': {}'.format(dd if dt else '')} | |||
r1282 | % if warn and warn['message']: | |||
r3900 | ${'{:<60}'.format('ALERT')} ${warn['type'].upper()} ${warn['message']} | |||
r1282 | % endif | |||
% endfor | ||||
SYSTEM SETTINGS | ||||
--------------- | ||||
% for key, value in sorted(c.rhodecode_config['human_value'].items()): | ||||
r3919 | % if isinstance(value, dict): | |||
<% | ||||
conf_file = value.pop('__file__', {}) | ||||
server_main = value.pop('server:main', {}) | ||||
%> | ||||
r3891 | [${key}] | |||
r3919 | ${'{:<60}'.format('__file__')}: ${conf_file} | |||
r1282 | ||||
r3891 | % for key2, value2 in sorted(server_main.items()): | |||
r3919 | ${'{:<60}'.format(key2)}: ${value2} | |||
r3891 | % endfor | |||
% for key2, value2 in sorted(value.items()): | ||||
${'{:<60}'.format(key2)}: ${value2} | ||||
r1282 | % endfor | |||
% else: | ||||
r3919 | [${key}] | |||
r3891 | ${value} | |||
r1282 | % endif | |||
r3891 | ||||
r1282 | % endfor | |||
r3919 | PYTHON PACKAGES | |||
--------------- | ||||
r4348 | % for name, package_data in c.py_modules['human_value']: | |||
${'{:<60}'.format(name)}: ${'{:<20}'.format(package_data['version'])} (${package_data['location']}) | ||||
r3919 | % endfor | |||
r1282 | </pre> | |||