File: sat_cache.dtml

package info (click to toggle)
zope-ldapuserfolder 2.9-1%2Blenny1
  • links: PTS
  • area: main
  • in suites: lenny
  • size: 636 kB
  • ctags: 508
  • sloc: python: 4,896; makefile: 33; xml: 15
file content (72 lines) | stat: -rw-r--r-- 1,673 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
<dtml-var manage_page_header>

<dtml-with "_(management_view='Caches')">
  <dtml-var manage_tabs>
</dtml-with>

<p class="form-help">
  This form shows all cached user - role mappings
</p>

<form action="manage_reinit" method="post">
<table cellpadding="2" cellspacing="0" width="98%">
  <tr class="section-bar">
    <td colspan="2" align="left" valign="top" class="form-label">
      Purge all caches
    </td>
  </tr><tr>
    <td align="left" valign="top" class="form-text">
      Empty all caches
    </td>
    <td align="left" valign="top" class="form-element">
      <input type="submit" value=" Purge all caches " />
    </td>
  </tr>
</table>
</form>

<p>&nbsp;</p>

<table cellpadding"3" cellspacing="0" width="98%">
  <tr class="section-bar">
    <td align="left" valign="top" class="form-label">
      Cached role map
    </td>
  </tr>
</table>

<dtml-in getCache>

  <dtml-if name="sequence-start">
    <br />
    <table border="1" cellpadding="2">
      <tr>
        <td class="form-label"> UserID </td>
        <td class="form-label"> Added Roles </td>
        <td class="form-label"> Cached until </td>
      </tr>
  </dtml-if>

  <tr>
    <td valign="top" class="form-text">
      &dtml-sequence-key;
    </td>
    <td valign="top" class="form-text">
      <dtml-var expr="_.string.join(_['sequence-item'], ', ')">
    </td>
    <td valign="top" class="form-text">
      <dtml-var expr="getExpiration(_['sequence-key'])" fmt="Time">
    </td>
  </tr>

  <dtml-if name="sequence-end">
    </table>
  </dtml-if>

<dtml-else>
    <br />
    <div class="form-text"> No users in cache (superuser is never cached) </div>

</dtml-in>

<dtml-var manage_page_footer>