settings_system_snapshot.mako
47 lines
| 865 B
| 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 | ||||
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> | ||||