Simon Willison
|
8ea00e038d
|
New View base class (#2080)
* New View base class, closes #2078
* Use new View subclass for PatternPortfolioView
|
2023-05-25 17:23:53 -07:00 |
|
Simon Willison
|
94882aa72b
|
--cors Access-Control-Max-Age: 3600, closes #2079
|
2023-05-25 17:23:53 -07:00 |
|
Simon Willison
|
0805771061
|
Rename callable.py to check_callable.py, refs #2078
|
2023-05-25 17:23:53 -07:00 |
|
Simon Willison
|
3f39fba7ea
|
datasette.utils.check_callable(obj) - refs #2078
|
2023-05-25 17:23:53 -07:00 |
|
Simon Willison
|
6ae5312158
|
?sql=... now displays HTML
|
2023-05-22 18:44:07 -07:00 |
|
Simon Willison
|
fdb141f622
|
shape_arrayfirst for query view
|
2023-05-08 17:52:22 -07:00 |
|
Simon Willison
|
3304fd43a2
|
refresh_schemas() on database view
|
2023-05-08 17:51:05 -07:00 |
|
Simon Willison
|
8b86fb7fb4
|
Better debugging
|
2023-05-08 17:50:12 -07:00 |
|
Simon Willison
|
a706f34b92
|
Remove debug lines
|
2023-04-26 22:07:05 -07:00 |
|
Simon Willison
|
026429fadd
|
Work in progress on query view, refs #2049
|
2023-04-26 20:47:03 -07:00 |
|
Simon Willison
|
40dc5f5c50
|
WIP
|
2023-04-12 17:04:26 -07:00 |
|
Simon Willison
|
7b41521b33
|
WIP new JSON for queries, refs #2049
|
2023-04-05 16:25:29 -07:00 |
|
Simon Willison
|
651b78d8e6
|
Redesign ?_extra=extras a bit, refs #262
|
2023-03-28 23:07:30 -07:00 |
|
Simon Willison
|
3feed1f66e
|
Re-applied Black
|
2023-03-22 15:54:35 -07:00 |
|
Simon Willison
|
d97e82df3c
|
?_extra= support and TableView refactor to table_view
* Implemented ?_extra= option for JSON views, refs #262
* New dependency: asyncinject
* Remove now-obsolete TableView class
|
2023-03-22 15:49:39 -07:00 |
|
Simon Willison
|
bd39cb4805
|
Use service-specific image ID for Cloud Run deploys, refs #2036
|
2023-03-08 12:25:55 -08:00 |
|
Simon Willison
|
1ad92a1d87
|
datasette install -r requirements.txt, closes #2033
|
2023-03-06 14:27:30 -08:00 |
|
Simon Willison
|
0b4a286914
|
render_cell(..., request) argument, closes #2007
|
2023-01-27 19:34:14 -08:00 |
|
Simon Willison
|
50fd94e04f
|
Raise ValueError if Datasette(files=) is a string, refs #1985
|
2023-01-11 10:13:20 -08:00 |
|
Simon Willison
|
7b48664d75
|
Better error for --load-extensions, refs #1979
|
2023-01-07 15:56:03 -08:00 |
|
Simon Willison
|
c41278b46f
|
default_allow_sql setting, closes #1409
Refs #1410
|
2023-01-04 16:51:26 -08:00 |
|
Simon Willison
|
572bdb5b80
|
Applied Black, refs #782
|
2022-12-31 19:32:07 -08:00 |
|
Simon Willison
|
d94a3c4326
|
No need to link to _shape=objects any more
It's the default now. Refs #782
|
2022-12-31 17:42:48 -08:00 |
|
Simon Willison
|
3c352b7132
|
Applied Black, refs #782
|
2022-12-31 13:17:54 -08:00 |
|
Simon Willison
|
5bbe2bcc50
|
Rename filtered_table_rows_count to count, refs #782
|
2022-12-31 12:52:57 -08:00 |
|
Simon Willison
|
8aa9cf629c
|
Store null instead of 'None' in _internal database table, closes #1970
|
2022-12-31 10:52:37 -08:00 |
|
Simon Willison
|
234230e595
|
Default JSON shape is now objects - refs #1914, #1709
|
2022-12-31 10:52:37 -08:00 |
|
Simon Willison
|
a21c00b54d
|
.select-wrapper:focus-within for accessibility, closes #1771
|
2022-12-17 22:28:07 -08:00 |
|
Simon Willison
|
8b73fc6b47
|
Put AsgiLifestyle back so server starts up again, refs #1955
|
2022-12-17 17:22:00 -08:00 |
|
Simon Willison
|
63fb750f39
|
Replace AsgiLifespan with AsgiRunOnFirstRequest, refs #1955
|
2022-12-17 14:14:34 -08:00 |
|
Simon Willison
|
d94d363ec0
|
Don't use pytest_asyncio.fixture(scope="session") any more, refs #1959
Also got rid of the weird memory=False hack:
https://github.com/simonw/datasette/pull/1960#issuecomment-1354053151
|
2022-12-17 13:47:55 -08:00 |
|
Simon Willison
|
95900b9d02
|
Port app_client to ds_client for most of test_html.py, refs #1959
|
2022-12-17 13:47:55 -08:00 |
|
Simon Willison
|
425ac4357f
|
Ported app_client to ds_client where possible in test_auth.py, refs #1959
|
2022-12-17 13:47:55 -08:00 |
|
Simon Willison
|
b077e63dc6
|
Ported test_api.py app_client test to ds_client, refs #1959
|
2022-12-17 13:47:55 -08:00 |
|
Simon Willison
|
013496862f
|
Try click.echo() instead
This ensures the URL is output correctly when running under Docker.
Closes #1958
|
2022-12-15 16:55:17 -08:00 |
|
Simon Willison
|
0b68996cc5
|
Revert "Replace AsgiLifespan with AsgiRunOnFirstRequest, refs #1955"
This reverts commit dc18f62089.
|
2022-12-15 13:06:45 -08:00 |
|
Simon Willison
|
dc18f62089
|
Replace AsgiLifespan with AsgiRunOnFirstRequest, refs #1955
|
2022-12-15 09:34:07 -08:00 |
|
Simon Willison
|
8cac6ff301
|
Release 1.0a2
Refs #1636, #1855, #1878, #1927, #1937, #1940, #1947, #1951
Closes #1953
|
2022-12-14 18:01:02 -08:00 |
|
Simon Willison
|
c094dde3ff
|
Extra permission rules for /-/create, closes #1937
|
2022-12-14 12:21:18 -08:00 |
|
Simon Willison
|
e238df3959
|
Handle non-initials in permission_allowed_actor_restrictions, closes #1956
|
2022-12-14 12:04:23 -08:00 |
|
Simon Willison
|
1a3dcf4943
|
Don't include _memory on /-/create-token, refs #1947
|
2022-12-13 21:19:31 -08:00 |
|
Simon Willison
|
420d0a0ee2
|
Tests for /-/create-token with restrictions, closes #1947
|
2022-12-13 21:13:20 -08:00 |
|
Simon Willison
|
d98a8effb1
|
UI for restricting permissions on /-/create-token, refs #1947
Also fixes test failures I introduced in #1951
|
2022-12-13 21:03:17 -08:00 |
|
Simon Willison
|
fdf7c27b54
|
datasette.create_token() method, closes #1951
|
2022-12-13 18:42:01 -08:00 |
|
Simon Willison
|
d4cc1374f4
|
Improved --help for create-token, refs #1947
|
2022-12-13 14:28:59 -08:00 |
|
Simon Willison
|
f84acae98e
|
Return 400 errors for ?_sort errors, closes #1950
|
2022-12-13 14:23:17 -08:00 |
|
Simon Willison
|
34ad574bac
|
Don't hard-code permissions in permission_allowed_actor_restrictions, refs #1855
|
2022-12-12 21:14:40 -08:00 |
|
Simon Willison
|
c13dada2f8
|
datasette --get --token option, closes #1946, refs #1855
|
2022-12-12 20:36:42 -08:00 |
|
Simon Willison
|
e95b490d88
|
Move create-token command into cli.py, refs #1855
|
2022-12-12 20:18:42 -08:00 |
|
Simon Willison
|
9cc1a7c4c8
|
create-token command can now create restricted tokens, refs #1855
|
2022-12-12 20:15:56 -08:00 |
|