remove dead code
parent
26c945a91d
commit
f82e60e277
|
@ -54,9 +54,6 @@ def start():
|
|||
app.connections.register_callback('drop', drop_profile)
|
||||
app.connections.start()
|
||||
|
||||
app.tokens = pools.TokenPool(timeout=600.0)
|
||||
app.tokens.start()
|
||||
|
||||
app.profiles = {}
|
||||
app.forms = initialize_forms()
|
||||
|
||||
|
|
|
@ -19,12 +19,4 @@ class LDAPConnectionPool(lru.LRUPool):
|
|||
def unbind(self, dn):
|
||||
return self.drop(dn)
|
||||
|
||||
class TokenPool(lru.LRUPool):
|
||||
@lru.locked
|
||||
def find_owner(self, token):
|
||||
for k, v in self.pool.items():
|
||||
if v[0] == token:
|
||||
return k
|
||||
return None
|
||||
|
||||
|
||||
|
|
|
@ -1,6 +0,0 @@
|
|||
Czy na pewno usunąć ten klucz?
|
||||
<form action="" method="POST">
|
||||
{{ form.csrf_token }}
|
||||
<input type="submit" value="Usuń">
|
||||
</form>
|
||||
<a href="{{ fatal_redirect }}"><button>Anuluj</button></a>
|
|
@ -1,12 +0,0 @@
|
|||
{% extends 'basic.html' %}
|
||||
{% block content %}
|
||||
<h1>{% if attr_op == 'add' %}Dodaj{%else%}Zmień{%endif%} klucz</h1>
|
||||
<form action="" method="POST">
|
||||
<table>
|
||||
{{ form.csrf_token }}
|
||||
<label><tr><td>{{ form.value.label }}</td></tr>
|
||||
<tr><td>{{ form.value(cols=80, rows=20) }}</td></tr></label>
|
||||
<tr><td><input type="submit" value="Zapisz"></td></tr>
|
||||
</table>
|
||||
</form>
|
||||
{% endblock %}
|
Loading…
Reference in New Issue