settings_system_snapshot.mako
47 lines
| 841 B
| application/x-mako
|
MakoHtmlLexer
r1282 | ||||
<pre> | ||||
SYSTEM INFO | ||||
----------- | ||||
% for dt, dd, warn in c.data_items: | ||||
r3891 | ${'{:<60}'.format(dt.lower().replace(' ', '_'))}${': '+dd if dt else ''} | |||
r1282 | % if warn and warn['message']: | |||
ALERT_${warn['type'].upper()} ${warn['message']} | ||||
% endif | ||||
% endfor | ||||
PYTHON PACKAGES | ||||
--------------- | ||||
% for key, value in c.py_modules['human_value']: | ||||
r3891 | ${'{:<60}'.format(key)}: ${value} | |||
r1282 | % endfor | |||
SYSTEM SETTINGS | ||||
--------------- | ||||
% for key, value in sorted(c.rhodecode_config['human_value'].items()): | ||||
r3891 | [${key}] | |||
r1282 | % if isinstance(value, dict): | |||
r3891 | <% server_main = value.pop('server:main', {}) %> | |||
r1282 | ||||
r3891 | % for key2, value2 in sorted(server_main.items()): | |||
${'{:<60}'.format('server:main')}: ${value2} | ||||
% endfor | ||||
% for key2, value2 in sorted(value.items()): | ||||
${'{:<60}'.format(key2)}: ${value2} | ||||
r1282 | % endfor | |||
% else: | ||||
r3891 | ${value} | |||
r1282 | % endif | |||
r3891 | ||||
r1282 | % endfor | |||
</pre> | ||||