author | Philippe Pepiot <philippe.pepiot@logilab.fr> |
Tue, 25 Feb 2020 22:45:42 +0100 | |
branch | 3.27 |
changeset 12894 | ba528f08ddfa |
parent 12776 | 3cbcbaead477 |
child 12929 | edfee40475bb |
permissions | -rw-r--r-- |
12764
fb97669efcaa
[debug-toolbar] add cw general panel with controller
Laurent Peuch <cortex@worlddomination.be>
parents:
diff
changeset
|
1 |
<h3>Controller</h3> |
fb97669efcaa
[debug-toolbar] add cw general panel with controller
Laurent Peuch <cortex@worlddomination.be>
parents:
diff
changeset
|
2 |
|
fb97669efcaa
[debug-toolbar] add cw general panel with controller
Laurent Peuch <cortex@worlddomination.be>
parents:
diff
changeset
|
3 |
<table class="table table-striped table-condensed"> |
fb97669efcaa
[debug-toolbar] add cw general panel with controller
Laurent Peuch <cortex@worlddomination.be>
parents:
diff
changeset
|
4 |
<thead> |
fb97669efcaa
[debug-toolbar] add cw general panel with controller
Laurent Peuch <cortex@worlddomination.be>
parents:
diff
changeset
|
5 |
<tr> |
fb97669efcaa
[debug-toolbar] add cw general panel with controller
Laurent Peuch <cortex@worlddomination.be>
parents:
diff
changeset
|
6 |
<th>Kind</th> |
fb97669efcaa
[debug-toolbar] add cw general panel with controller
Laurent Peuch <cortex@worlddomination.be>
parents:
diff
changeset
|
7 |
<th>Request</th> |
fb97669efcaa
[debug-toolbar] add cw general panel with controller
Laurent Peuch <cortex@worlddomination.be>
parents:
diff
changeset
|
8 |
<th>Path</th> |
fb97669efcaa
[debug-toolbar] add cw general panel with controller
Laurent Peuch <cortex@worlddomination.be>
parents:
diff
changeset
|
9 |
<th>Controller</th> |
fb97669efcaa
[debug-toolbar] add cw general panel with controller
Laurent Peuch <cortex@worlddomination.be>
parents:
diff
changeset
|
10 |
</tr> |
fb97669efcaa
[debug-toolbar] add cw general panel with controller
Laurent Peuch <cortex@worlddomination.be>
parents:
diff
changeset
|
11 |
</thead> |
fb97669efcaa
[debug-toolbar] add cw general panel with controller
Laurent Peuch <cortex@worlddomination.be>
parents:
diff
changeset
|
12 |
<tbody> |
fb97669efcaa
[debug-toolbar] add cw general panel with controller
Laurent Peuch <cortex@worlddomination.be>
parents:
diff
changeset
|
13 |
<tr> |
fb97669efcaa
[debug-toolbar] add cw general panel with controller
Laurent Peuch <cortex@worlddomination.be>
parents:
diff
changeset
|
14 |
<td>${controller["kind"]}</td> |
12776
3cbcbaead477
[debug-toolbar] link to source code of all objects/classes
Laurent Peuch <cortex@worlddomination.be>
parents:
12764
diff
changeset
|
15 |
<td>${controller["request"]} ${source_code_url(controller["request"]) | n}</td> |
12764
fb97669efcaa
[debug-toolbar] add cw general panel with controller
Laurent Peuch <cortex@worlddomination.be>
parents:
diff
changeset
|
16 |
<td>${controller["path"]}</td> |
12776
3cbcbaead477
[debug-toolbar] link to source code of all objects/classes
Laurent Peuch <cortex@worlddomination.be>
parents:
12764
diff
changeset
|
17 |
<td>${controller["controller"]} ${source_code_url(controller["controller"]) | n}</td> |
12764
fb97669efcaa
[debug-toolbar] add cw general panel with controller
Laurent Peuch <cortex@worlddomination.be>
parents:
diff
changeset
|
18 |
</tr> |
fb97669efcaa
[debug-toolbar] add cw general panel with controller
Laurent Peuch <cortex@worlddomination.be>
parents:
diff
changeset
|
19 |
</tbody> |
fb97669efcaa
[debug-toolbar] add cw general panel with controller
Laurent Peuch <cortex@worlddomination.be>
parents:
diff
changeset
|
20 |
</table> |
fb97669efcaa
[debug-toolbar] add cw general panel with controller
Laurent Peuch <cortex@worlddomination.be>
parents:
diff
changeset
|
21 |
|
fb97669efcaa
[debug-toolbar] add cw general panel with controller
Laurent Peuch <cortex@worlddomination.be>
parents:
diff
changeset
|
22 |
<h3>Configuration</h3> |
fb97669efcaa
[debug-toolbar] add cw general panel with controller
Laurent Peuch <cortex@worlddomination.be>
parents:
diff
changeset
|
23 |
|
fb97669efcaa
[debug-toolbar] add cw general panel with controller
Laurent Peuch <cortex@worlddomination.be>
parents:
diff
changeset
|
24 |
<table class="table table-striped table-condensed"> |
fb97669efcaa
[debug-toolbar] add cw general panel with controller
Laurent Peuch <cortex@worlddomination.be>
parents:
diff
changeset
|
25 |
<thead> |
fb97669efcaa
[debug-toolbar] add cw general panel with controller
Laurent Peuch <cortex@worlddomination.be>
parents:
diff
changeset
|
26 |
<tr> |
fb97669efcaa
[debug-toolbar] add cw general panel with controller
Laurent Peuch <cortex@worlddomination.be>
parents:
diff
changeset
|
27 |
<th>Key</th> |
fb97669efcaa
[debug-toolbar] add cw general panel with controller
Laurent Peuch <cortex@worlddomination.be>
parents:
diff
changeset
|
28 |
<th>Value</th> |
fb97669efcaa
[debug-toolbar] add cw general panel with controller
Laurent Peuch <cortex@worlddomination.be>
parents:
diff
changeset
|
29 |
<th>Default</th> |
fb97669efcaa
[debug-toolbar] add cw general panel with controller
Laurent Peuch <cortex@worlddomination.be>
parents:
diff
changeset
|
30 |
<th>Help</th> |
fb97669efcaa
[debug-toolbar] add cw general panel with controller
Laurent Peuch <cortex@worlddomination.be>
parents:
diff
changeset
|
31 |
</tr> |
fb97669efcaa
[debug-toolbar] add cw general panel with controller
Laurent Peuch <cortex@worlddomination.be>
parents:
diff
changeset
|
32 |
</thead> |
fb97669efcaa
[debug-toolbar] add cw general panel with controller
Laurent Peuch <cortex@worlddomination.be>
parents:
diff
changeset
|
33 |
<tbody> |
fb97669efcaa
[debug-toolbar] add cw general panel with controller
Laurent Peuch <cortex@worlddomination.be>
parents:
diff
changeset
|
34 |
% for key, metadata in sorted(controller["config"].options, key=lambda x: x[0]): |
fb97669efcaa
[debug-toolbar] add cw general panel with controller
Laurent Peuch <cortex@worlddomination.be>
parents:
diff
changeset
|
35 |
% if hasattr(controller["config"].config, key.replace("-", "_")): |
fb97669efcaa
[debug-toolbar] add cw general panel with controller
Laurent Peuch <cortex@worlddomination.be>
parents:
diff
changeset
|
36 |
<% value = getattr(controller["config"].config, key.replace("-", "_")) %> |
fb97669efcaa
[debug-toolbar] add cw general panel with controller
Laurent Peuch <cortex@worlddomination.be>
parents:
diff
changeset
|
37 |
<tr> |
fb97669efcaa
[debug-toolbar] add cw general panel with controller
Laurent Peuch <cortex@worlddomination.be>
parents:
diff
changeset
|
38 |
<td>${key}</td> |
fb97669efcaa
[debug-toolbar] add cw general panel with controller
Laurent Peuch <cortex@worlddomination.be>
parents:
diff
changeset
|
39 |
% if value != metadata["default"]: |
fb97669efcaa
[debug-toolbar] add cw general panel with controller
Laurent Peuch <cortex@worlddomination.be>
parents:
diff
changeset
|
40 |
<td><b>${value}</b></td> |
fb97669efcaa
[debug-toolbar] add cw general panel with controller
Laurent Peuch <cortex@worlddomination.be>
parents:
diff
changeset
|
41 |
% else: |
fb97669efcaa
[debug-toolbar] add cw general panel with controller
Laurent Peuch <cortex@worlddomination.be>
parents:
diff
changeset
|
42 |
<td>${value}</td> |
fb97669efcaa
[debug-toolbar] add cw general panel with controller
Laurent Peuch <cortex@worlddomination.be>
parents:
diff
changeset
|
43 |
% endif |
fb97669efcaa
[debug-toolbar] add cw general panel with controller
Laurent Peuch <cortex@worlddomination.be>
parents:
diff
changeset
|
44 |
<td>${metadata["default"]}</td> |
fb97669efcaa
[debug-toolbar] add cw general panel with controller
Laurent Peuch <cortex@worlddomination.be>
parents:
diff
changeset
|
45 |
<td>${metadata["help"]}</td> |
fb97669efcaa
[debug-toolbar] add cw general panel with controller
Laurent Peuch <cortex@worlddomination.be>
parents:
diff
changeset
|
46 |
</tr> |
fb97669efcaa
[debug-toolbar] add cw general panel with controller
Laurent Peuch <cortex@worlddomination.be>
parents:
diff
changeset
|
47 |
% endif |
fb97669efcaa
[debug-toolbar] add cw general panel with controller
Laurent Peuch <cortex@worlddomination.be>
parents:
diff
changeset
|
48 |
% endfor |
fb97669efcaa
[debug-toolbar] add cw general panel with controller
Laurent Peuch <cortex@worlddomination.be>
parents:
diff
changeset
|
49 |
</tbody> |
fb97669efcaa
[debug-toolbar] add cw general panel with controller
Laurent Peuch <cortex@worlddomination.be>
parents:
diff
changeset
|
50 |
</table> |
fb97669efcaa
[debug-toolbar] add cw general panel with controller
Laurent Peuch <cortex@worlddomination.be>
parents:
diff
changeset
|
51 |
|
fb97669efcaa
[debug-toolbar] add cw general panel with controller
Laurent Peuch <cortex@worlddomination.be>
parents:
diff
changeset
|
52 |
|
fb97669efcaa
[debug-toolbar] add cw general panel with controller
Laurent Peuch <cortex@worlddomination.be>
parents:
diff
changeset
|
53 |
|
fb97669efcaa
[debug-toolbar] add cw general panel with controller
Laurent Peuch <cortex@worlddomination.be>
parents:
diff
changeset
|
54 |
<h3>Useful links</h3> |
fb97669efcaa
[debug-toolbar] add cw general panel with controller
Laurent Peuch <cortex@worlddomination.be>
parents:
diff
changeset
|
55 |
|
fb97669efcaa
[debug-toolbar] add cw general panel with controller
Laurent Peuch <cortex@worlddomination.be>
parents:
diff
changeset
|
56 |
<!-- link on the default home as an admin --> |
fb97669efcaa
[debug-toolbar] add cw general panel with controller
Laurent Peuch <cortex@worlddomination.be>
parents:
diff
changeset
|
57 |
<ul> |
fb97669efcaa
[debug-toolbar] add cw general panel with controller
Laurent Peuch <cortex@worlddomination.be>
parents:
diff
changeset
|
58 |
<li><a href="/siteconfig">site configuration</a></li> |
fb97669efcaa
[debug-toolbar] add cw general panel with controller
Laurent Peuch <cortex@worlddomination.be>
parents:
diff
changeset
|
59 |
<li><a href="/schema">data model schema</a></li> |
fb97669efcaa
[debug-toolbar] add cw general panel with controller
Laurent Peuch <cortex@worlddomination.be>
parents:
diff
changeset
|
60 |
<li><a href="/cwuser">users and groups</a></li> |
fb97669efcaa
[debug-toolbar] add cw general panel with controller
Laurent Peuch <cortex@worlddomination.be>
parents:
diff
changeset
|
61 |
<li><a href="/cwsource">data sources</a></li> |
fb97669efcaa
[debug-toolbar] add cw general panel with controller
Laurent Peuch <cortex@worlddomination.be>
parents:
diff
changeset
|
62 |
<li><a href="/siteinfo">Site information</a></li> |
fb97669efcaa
[debug-toolbar] add cw general panel with controller
Laurent Peuch <cortex@worlddomination.be>
parents:
diff
changeset
|
63 |
</ul> |