Itamar Turner-Trauring
26560a4212
More passing tests on Python 3.
2021-02-02 14:25:01 -05:00
Itamar Turner-Trauring
a27dc83920
More passing tests on Python 3.
2021-02-01 11:42:09 -05:00
Itamar Turner-Trauring
e5a7ea97c7
More tests passing on Python 3.
2021-01-28 11:44:16 -05:00
Itamar Turner-Trauring
2007323baa
More passing tests on Python 3.
2021-01-28 11:19:09 -05:00
Itamar Turner-Trauring
6668842356
More passing tests on Python 3.
2021-01-27 15:43:44 -05:00
Itamar Turner-Trauring
ea10c7c937
More passing tests on Python 3.
2021-01-27 15:20:38 -05:00
Itamar Turner-Trauring
175a3ca4bb
More passing tests on Python 3.
2021-01-27 12:45:36 -05:00
Itamar Turner-Trauring
4f56ce436a
More passing tests on Python 3.
2021-01-27 12:39:28 -05:00
Itamar Turner-Trauring
c1391159fa
More passing tests on Python 3.
2021-01-27 12:06:25 -05:00
Itamar Turner-Trauring
9f5e1381bf
Another passing Python 3 test.
2021-01-27 11:29:46 -05:00
Itamar Turner-Trauring
5a2339ced3
Another test passing on Python 3.
2021-01-26 11:09:19 -05:00
Itamar Turner-Trauring
e271cd1b64
Another test passing on Python 3.
2021-01-26 10:20:15 -05:00
Itamar Turner-Trauring
58745fd373
More passing Python 3 tests.
2021-01-25 10:32:28 -05:00
Itamar Turner-Trauring
59847edf9c
More Python 3 fixes.
2021-01-25 10:06:05 -05:00
Itamar Turner-Trauring
3eb62f1d0f
More passing tests on Python 3.
2021-01-25 09:25:20 -05:00
Itamar Turner-Trauring
4c5ea34af6
More passing tests on Python 3.
2021-01-22 15:07:03 -05:00
Itamar Turner-Trauring
e91d37e64b
Fix unit test so it's actually testing the real bug.
2021-01-19 17:13:52 -05:00
Itamar Turner-Trauring
6979cfa205
Fix the redirect 'str has no render' bug.
2021-01-19 14:28:00 -05:00
Itamar Turner-Trauring
2de76cd82d
Merge branch 'master' into 3589.more-web-tests-python-3
2021-01-19 11:44:27 -05:00
Jason R. Coombs
7d468cde19
Merge branch 'master' into 3399.mypy
2021-01-15 11:17:47 -05:00
Itamar Turner-Trauring
42b31a2809
Fix flake.
2021-01-14 15:58:18 -05:00
Itamar Turner-Trauring
a2dab7c89f
Only do this on Python 3.
2021-01-14 09:40:10 -05:00
Itamar Turner-Trauring
aace119790
Fix Python 3 issue with combining bytes and unicode.
2021-01-13 09:55:54 -05:00
Itamar Turner-Trauring
7a3e9ab43e
Tests pass on Python 3.
2021-01-12 14:39:20 -05:00
Itamar Turner-Trauring
c076e1ee26
Just fix all the putChild.
2021-01-12 14:24:11 -05:00
Itamar Turner-Trauring
bd364feec5
Tests pass on Python 3.
2021-01-12 14:14:52 -05:00
Itamar Turner-Trauring
7e5e329138
Port to Python 3.
2021-01-12 11:44:27 -05:00
Itamar Turner-Trauring
d99c94753c
On Python 3 we need to make sure bytes get written to the websocket.
2021-01-12 11:38:37 -05:00
Itamar Turner-Trauring
d7db34f27a
Add explanation for if statement.
2021-01-04 14:33:06 -05:00
Itamar Turner-Trauring
a46a7dc7f8
Log, don't raise.
2021-01-04 14:23:12 -05:00
Jason R. Coombs
574613a892
Merge branch 'master' into 3399.mypy
2020-12-26 12:45:09 -05:00
Itamar Turner-Trauring
58cb757816
Sometimes these values are more extended Unicode than ASCII.
2020-12-23 09:42:42 -05:00
Itamar Turner-Trauring
f736dc6f7b
Fix some tests caused by unicode rendering.
2020-12-23 09:34:48 -05:00
Itamar Turner-Trauring
55698cc8f2
Merge remote-tracking branch 'origin/master' into 3566.web-tests-python-3-part-2
2020-12-22 13:21:49 -05:00
Itamar Turner-Trauring
74c08883f5
Another passing test on Python 3.
2020-12-22 11:36:52 -05:00
Itamar Turner-Trauring
0534979e61
Another passing test on Python 3.
2020-12-22 11:03:23 -05:00
Itamar Turner-Trauring
c25dd57768
Make sure we can handle bytes, plus a couple other fixes.
2020-12-21 13:12:01 -05:00
Itamar Turner-Trauring
a2f042845d
Another passing test.
2020-12-21 10:58:09 -05:00
Itamar Turner-Trauring
d8197d9554
Another passing test.
2020-12-21 10:52:31 -05:00
Itamar Turner-Trauring
15c7af8e72
Another passing test.
2020-12-21 10:29:59 -05:00
Itamar Turner-Trauring
98c71e51e1
More progress towards passing tests.
2020-12-21 10:04:27 -05:00
Itamar Turner-Trauring
c71acf93fd
Bytes, alas.
2020-12-18 16:10:23 -05:00
Itamar Turner-Trauring
f964ae1782
Docstrings.
2020-12-18 15:43:27 -05:00
Itamar Turner-Trauring
b24a9f7083
Trying to get test_grid working on Python 3.
2020-12-18 11:21:04 -05:00
Jason R. Coombs
51b0b201b4
Expand comment to provide more context.
2020-12-18 10:33:30 -05:00
Itamar Turner-Trauring
b5f2afe39c
WIP porting test_status.py.
2020-12-16 14:13:46 -05:00
Itamar Turner-Trauring
67c0a4ac84
Port another test module to Python 3.
2020-12-16 13:53:49 -05:00
Itamar Turner-Trauring
acc36c34d0
Tests pass on Python 2 and Python 3.
2020-12-16 11:13:32 -05:00
Jean-Paul Calderone
e8e928aced
Remove the web view onto the removed metrics
2020-12-10 18:24:00 -05:00
Itamar Turner-Trauring
27102c0d89
Merge remote-tracking branch 'origin/master' into 3514.test-introducer-python-3
2020-11-30 16:47:21 -05:00
Jason R. Coombs
6ea9003436
Declare MultiFormatResource.formatDefault as optional string for subclass overrides.
2020-11-29 15:19:11 -05:00
Jason R. Coombs
bc3508ce60
Ignore type checks on cmp usage (awaiting Python 3 porting)
2020-11-29 14:01:05 -05:00
Jason R. Coombs
8da82e9ed5
Add workaround for Shoobx/mypy-zope#26 .
2020-11-29 13:57:46 -05:00
Jean-Paul Calderone
c694e8c7e2
Delete allmydata.version_checks and related functionality
...
It is not Tahoe-LAFS' job to manage package installation in this way.
Instead, we can declare our dependencies in setup.py and rely on installation
management tools and packagers to create a suitable execution environment.
Making this statement in the past required going much further out on a limb
than it does today. This code has served its purpose and can now be retired.
2020-11-23 15:10:18 -05:00
Itamar Turner-Trauring
53a6882f21
Some progress on Python 3 passing tests, some going backwards.
2020-11-20 12:02:22 -05:00
Itamar Turner-Trauring
d30014f8f5
The Resource dictionary is keyed by bytes, so storing unicode means you don't
...
get the cached resource!
2020-11-03 11:14:25 -05:00
Itamar Turner-Trauring
3edc1cb29e
The dictionary is unicode, not bytes.
2020-11-03 10:41:02 -05:00
Jean-Paul Calderone
e97b5f6bb4
document get_arg req parameter
2020-10-22 07:22:51 -04:00
Jean-Paul Calderone
e3b1d4f536
enforce the type requirement
2020-10-22 07:17:52 -04:00
Jean-Paul Calderone
c8b9a0265a
get_root
docs
2020-10-22 07:16:57 -04:00
Jean-Paul Calderone
62f5fb9d28
Make sure the JSON is given back as bytes
2020-10-21 12:27:08 -04:00
Jean-Paul Calderone
37016f4ab5
pyflakes
2020-10-21 12:21:44 -04:00
Jean-Paul Calderone
c31300fd0d
Handle interrupted connections
2020-10-21 12:21:01 -04:00
Jean-Paul Calderone
14b9dc090d
Replace some ctx
names with req
2020-10-21 10:12:48 -04:00
Jean-Paul Calderone
7eecf51dc5
Just talk about rendering, not Nevow
2020-10-21 10:02:22 -04:00
Jean-Paul Calderone
6500f742dc
Twisted Web handles UnsupportedMethod for us
2020-10-21 10:02:10 -04:00
Jean-Paul Calderone
2ba34a4759
Talk about Nevow as a proper noun where necessary
2020-10-21 10:01:46 -04:00
Jean-Paul Calderone
a577f1e48d
pyflakes
2020-10-21 09:49:03 -04:00
Jean-Paul Calderone
c8db069960
Get rid of no-longer used Nevow exception handler
2020-10-21 09:45:41 -04:00
Jean-Paul Calderone
304a9880e6
De-Nevow `get_root
`
2020-10-21 08:50:53 -04:00
Jean-Paul Calderone
743ead71a4
De-Nevow `get_arg
`
2020-10-21 08:50:37 -04:00
Jean-Paul Calderone
7ca8ede88c
Merge remote-tracking branch 'origin/master' into 3428.dont-return-deferred-to-twistedweb.2
2020-10-21 07:35:10 -04:00
Jean-Paul Calderone
f602382244
Comments about __get__ calls
2020-10-21 07:34:27 -04:00
Jean-Paul Calderone
e8761c98ad
A comment about what _finish
is here for
2020-10-21 07:25:48 -04:00
Jean-Paul Calderone
dbe2d4efd7
It isn't the root, it's wherever we actually are
2020-10-21 07:22:00 -04:00
Jean-Paul Calderone
a91dba5f5b
_finish docstring
2020-10-21 07:18:41 -04:00
Jean-Paul Calderone
a9e9efb336
direct tests for @render_exception
2020-10-19 14:26:12 -04:00
Jean-Paul Calderone
b68c08cff9
Yank direct support for URLPath from common.py
2020-10-19 12:33:15 -04:00
Jean-Paul Calderone
84acf4e50f
Accept unicode return values and encode them to UTF-8
...
Nevow accepts unicode in most places it accepts bytes and does the usual
sloppy Python 2 thing, lets one or the other get implicitly re-coded,
typically using the ascii codec.
We'll go with UTF-8 because that fails less often than ASCII. We may want to
clean up the code at some point so we're not accidentally slinging both bytes
and text around as if they were the same thing.
2020-10-18 10:58:09 -04:00
Jean-Paul Calderone
85bb0a7834
Get rid of the original token-based authorization helper
...
It was only used by magic-folder and that's gone now. We have a different
authorization helper for other things now, allmydata.web.private.
2020-10-16 14:14:15 -04:00
Jean-Paul Calderone
292f136547
pyflakes
2020-10-16 13:21:07 -04:00
Jean-Paul Calderone
a22426011b
import and naming cleanups post-merge
2020-10-16 12:49:36 -04:00
Jean-Paul Calderone
32051f93b9
Merge remote-tracking branch 'origin/master' into 3428.dont-return-deferred-to-twistedweb.2
2020-10-16 10:37:54 -04:00
Jean-Paul Calderone
a73a919a20
flakes
2020-10-16 10:22:42 -04:00
Jean-Paul Calderone
31207e4b6b
don't double-apply the renderer logic
...
since that leads to double-finishing requests too
2020-10-16 09:53:24 -04:00
Jean-Paul Calderone
0faa24d344
Add a mess of eliot logging to request handling
2020-10-16 09:53:19 -04:00
Jean-Paul Calderone
0339ba97b9
Turn getChild None and Deferred results into something Twisted Web can manage
2020-10-16 09:52:41 -04:00
Jean-Paul Calderone
fa02e46033
maybeDeferred always returns a Deferred
2020-10-16 09:52:33 -04:00
Jean-Paul Calderone
d38ae4d6dd
Stop reading server module attributes all the time
...
It jumps through a ton of deprecation machinery that is at least tedious in
the debugger, if not wasteful at runtime.
2020-10-16 09:52:18 -04:00
Jean-Paul Calderone
df949868b6
Stop explicitly finishing and then returning a string
2020-10-16 09:51:50 -04:00
Jean-Paul Calderone
69c7c40510
handle Deferred from render
2020-10-16 09:51:42 -04:00
Itamar Turner-Trauring
c0f486a9f6
Work on Python 3.
2020-10-13 09:51:25 -04:00
Itamar Turner-Trauring
50925fcec1
Get rid of more no-longer-needed moves.
2020-10-13 09:49:39 -04:00
Itamar Turner-Trauring
3ea18ca3fc
As better alternative to common_py3, make common.py import on Python 3.
2020-10-13 09:45:03 -04:00
Itamar Turner-Trauring
c680b1d971
Lint fixes.
2020-10-05 11:38:53 -04:00
Itamar Turner-Trauring
96231fab5f
Support bytes in JSON output.
2020-10-05 11:01:11 -04:00
Itamar Turner-Trauring
963f9ba94b
Closer to passing tests.
2020-10-02 11:01:24 -04:00
Itamar Turner-Trauring
f8f8329d70
More passing tests on Python 3.
2020-10-02 10:48:54 -04:00
Itamar Turner-Trauring
18e1c290a7
Reorganize code so allmydata.web.check_results can import without Nevow being installed.
2020-10-02 10:28:55 -04:00
Sajith Sasidharan
769f87c24d
Remove unused import
2020-09-28 20:39:13 -04:00