remove dead code

pull/1/head
radex 2023-09-23 09:50:05 +02:00
parent 26c945a91d
commit f82e60e277
4 changed files with 0 additions and 29 deletions

View File

@ -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()

View File

@ -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

View File

@ -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>

View File

@ -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 %}