|
1 % if vreg: |
|
2 |
|
3 <div id="registry-store"> |
|
4 <div class="row"> |
|
5 <div class="col-md-3"> |
|
6 <nav id="registry-store-categories"> |
|
7 <ul class="nav nav-pills nav-stacked"> |
|
8 % for category in sorted(vreg.keys()): |
|
9 <li role="presentation"><a href="#detail-${category}">${category}</a></li> |
|
10 % endfor |
|
11 </ul> |
|
12 </nav> |
|
13 </div> |
|
14 |
|
15 <div class="col-md-9"> |
|
16 % for category, data in sorted(vreg.items(), key=lambda x: x[0]): |
|
17 <div class="anchor"> |
|
18 <a class="anchor" id="detail-${category}"></a> |
|
19 <h4>${category.title()}</h4> |
|
20 <table class="table table-bordered table-striped"> |
|
21 % for key, values in sorted(data.items(), key=lambda x: x[0]): |
|
22 <tr> |
|
23 <th>${key}</th> |
|
24 <td> |
|
25 <ul> |
|
26 % for value in values: |
|
27 <li> |
|
28 % if isinstance(value, type): |
|
29 ${value.__module__}.${value.__name__} |
|
30 % else: |
|
31 ${value} |
|
32 % endif |
|
33 |
|
34 <ul> |
|
35 % if hasattr(value, "cw_etype"): |
|
36 <li>regid: '${value.cw_etype}'</li> |
|
37 % elif hasattr(value, "__regid__"): |
|
38 <li>regid: '${value.__regid__}'</li> |
|
39 % endif |
|
40 |
|
41 % if hasattr(value, "__select__"): |
|
42 <li>select: '${value.__select__}'</li> |
|
43 % if hasattr(value.__select__, "func_name"): |
|
44 <li>select name: '${value.__select__.func_name}'</li> |
|
45 % endif |
|
46 % if hasattr(value.__select__, "score"): |
|
47 <li>select score: '${value.__select__.score}'</li> |
|
48 % endif |
|
49 % endif |
|
50 |
|
51 <li>registries: ${value.__registries__}</li> |
|
52 |
|
53 % if hasattr(value, "rest_attr"): |
|
54 <li>rest_attr: '${value.rest_attr}'</li> |
|
55 % endif |
|
56 |
|
57 % if hasattr(value, "fetch_attrs"): |
|
58 <li>fetch_attrs: '${value.fetch_attrs}'</li> |
|
59 % endif |
|
60 |
|
61 % if hasattr(value, "cw_skip_copy_for"): |
|
62 <li>cw_skip_copy_for: '${value.cw_skip_copy_for}'</li> |
|
63 % endif |
|
64 |
|
65 % if hasattr(value, "e_schema"): |
|
66 <li>e_schema: '${value.e_schema}'</li> |
|
67 % endif |
|
68 </ul> |
|
69 </li> |
|
70 % endfor |
|
71 </ul> |
|
72 </td> |
|
73 </tr> |
|
74 % endfor |
|
75 </table> |
|
76 </div> |
|
77 % endfor |
|
78 </div> |
|
79 </div> |
|
80 </div> |
|
81 |
|
82 % else: |
|
83 <p>No registry store got collected, is it a bug?</p> |
|
84 % endif |
|
85 |
|
86 <style> |
|
87 a.anchor { |
|
88 display: block; |
|
89 position: relative; |
|
90 top: -150px; |
|
91 visibility: hidden; |
|
92 } |
|
93 </style> |