Limnoria/src/utils
Johannes Löthberg 27e7d6a9ac Aka: Add web UI (#1373)
* utils.web: Import html escaping functions

Signed-off-by: Johannes Löthberg <johannes@kyriasis.com>

* Aka: Add web interface for browsing Akas

Fixes #1226.

Signed-off-by: Johannes Löthberg <johannes@kyriasis.com>

* httpserver: Actually handle KeyError in unhook

Signed-off-by: Johannes Löthberg <johannes@kyriasis.com>

* test: FakeHTTPConnection: Don't decode data in send

BaseHTTPRequestHandler expects to get bytes, so we can't decode the sent
data.

Signed-off-by: Johannes Löthberg <johannes@kyriasis.com>

* test: HTTPPluginTestCase: Use BytesIO instead of StringIO

BaseHTTPRequestHandler expects bytes, not strings.

Signed-off-by: Johannes Löthberg <johannes@kyriasis.com>

* test: HTTPPluginTestCase: Rewind wfile to 0 before reading the response

Otherwise the read pointer is at the end of the file.

Signed-off-by: Johannes Löthberg <johannes@kyriasis.com>

* Aka: Add basic web UI tests

Signed-off-by: Johannes Löthberg <johannes@kyriasis.com>
2019-10-10 17:27:34 +02:00
..
__init__.py core: Apply some suggestions of pyflakes. 2015-08-31 18:19:22 +02:00
crypt.py core: Apply some suggestions of pyflakes. 2015-08-31 18:19:22 +02:00
error.py Remove need for 2to3. 2015-08-11 16:50:23 +02:00
file.py ChannelLogger + Karka + all DB plugins: Sanitize channel names when used in filenames. 2019-09-06 20:42:13 +02:00
gen.py Add support for Python 3.8/nightly. 2019-01-06 18:08:15 +01:00
iter.py utils.iter: Allow None argument to filterfalse and all. 2016-10-27 20:51:36 +02:00
minisix.py utils: Remove dependency on parent package. 2015-08-30 17:33:39 +02:00
net.py Properly handle multiple hosts in supybot.servers.http.hosts4. 2017-10-28 09:50:12 +02:00
python.py Fix previous commit for py2 and pypy. 2019-02-07 21:35:39 +01:00
seq.py Remove fix_xrange. 2015-08-10 19:36:07 +02:00
str.py Fix SyntaxWarnings on Python 3.8 2019-01-06 18:06:44 +01:00
structures.py Revert some instances of s/iteritems/items/ in be118c3338. 2016-11-11 13:04:00 +01:00
transaction.py Fix errors detected by PyLint. 2014-03-05 14:14:36 +01:00
web.py Aka: Add web UI (#1373) 2019-10-10 17:27:34 +02:00