Simon Willison
|
af350ba457
|
Use single Request created in DatasetteRouter, refs #870
|
2020-06-28 17:01:33 -07:00 |
|
Simon Willison
|
4dad028432
|
BaseView.as_asgi is now .as_view, refs #870
|
2020-06-28 16:47:40 -07:00 |
|
Simon Willison
|
a8bcafc177
|
Refactored out AsgiRouter, refs #870
|
2020-06-28 13:45:17 -07:00 |
|
Simon Willison
|
4b142862f2
|
Support non-async view functions, closes #867
|
2020-06-27 11:30:34 -07:00 |
|
Simon Willison
|
28bb1c5189
|
csrftoken() now works with .render_template(), closes #863
|
2020-06-23 20:23:50 -07:00 |
|
Simon Willison
|
6c26345836
|
New plugin hook: canned_queries(), refs #852
|
2020-06-18 16:35:15 -07:00 |
|
Simon Willison
|
6151c25a5a
|
Respect existing scope["actor"] if set, closes #854
|
2020-06-18 11:37:28 -07:00 |
|
Simon Willison
|
09a3479a54
|
New "startup" plugin hook, closes #834
|
2020-06-13 10:55:41 -07:00 |
|
Simon Willison
|
fba8ff6e76
|
"$env": "X" mechanism now works with nested lists, closes #837
|
2020-06-11 17:21:48 -07:00 |
|
Simon Willison
|
008e2f63c2
|
response.set_cookie(), closes #795
|
2020-06-09 15:19:37 -07:00 |
|
Simon Willison
|
5a6a73e319
|
Replace os.urandom(32).hex() with secrets.token_hex(32)
|
2020-06-08 21:37:35 -07:00 |
|
Simon Willison
|
f5e79adf26
|
register_routes() plugin hook (#819)
Fixes #215
|
2020-06-08 20:12:06 -07:00 |
|
Simon Willison
|
d392dc1cfa
|
Fixed test_table_not_exists_json test
|
2020-06-08 19:28:25 -07:00 |
|
Simon Willison
|
647c5ff0f3
|
Fixed broken CSS on 404 page, closes #777
|
2020-06-08 17:35:23 -07:00 |
|
Simon Willison
|
49d6d2f7b0
|
allow_sql block to control execute-sql upermission in metadata.json, closes #813
Also removed the --config allow_sql:0 mechanism in favour of the new allow_sql block.
|
2020-06-08 17:05:44 -07:00 |
|
Simon Willison
|
799c5d5357
|
Renamed resource_identifier to resource, refs #817
|
2020-06-08 11:59:53 -07:00 |
|
Simon Willison
|
c9f1ec616e
|
Removed resource_type from permissions system, closes #817
Refs #811, #699
|
2020-06-08 11:51:03 -07:00 |
|
Simon Willison
|
177059284d
|
New request.actor property, refs #811
|
2020-06-08 10:05:32 -07:00 |
|
Simon Willison
|
cc218fa9be
|
Move assert_permissions_checked() calls from test_html.py to test_permissions.py, refs #811
|
2020-06-08 07:02:31 -07:00 |
|
Simon Willison
|
86dec9e8ff
|
Added permission check to every view, closes #808
|
2020-06-06 22:30:36 -07:00 |
|
Simon Willison
|
75c143a84c
|
Fixed /-/plugins?all=1, refs #802
|
2020-06-05 16:55:08 -07:00 |
|
Simon Willison
|
f786033a5f
|
Fixed 'datasette plugins' command, with tests - closes #802
|
2020-06-05 16:46:37 -07:00 |
|
Simon Willison
|
84a9c4ff75
|
CSRF protection (#798)
Closes #793.
* Rename RequestParameters to MultiParams, refs #799
* Allow tuples as well as lists in MultiParams, refs #799
* Use csrftokens when running tests, refs #799
* Use new csrftoken() function, refs https://github.com/simonw/asgi-csrf/issues/7
* Check for Vary: Cookie hedaer, refs https://github.com/simonw/asgi-csrf/issues/8
|
2020-06-05 12:05:57 -07:00 |
|
Simon Willison
|
9690ce6068
|
More efficient modifiation of scope
|
2020-06-02 17:05:33 -07:00 |
|
Simon Willison
|
a7137dfe06
|
/-/plugins now shows details of hooks, closes #794
Also added /-/plugins?all=1 parameter to see default plugins.
|
2020-06-02 14:49:28 -07:00 |
|
Simon Willison
|
4fa7cf6853
|
Flash messages mechanism, closes #790
|
2020-06-02 14:12:18 -07:00 |
|
Simon Willison
|
b4cd8797b8
|
permission_checks is now _permission_checks
|
2020-06-02 14:11:32 -07:00 |
|
Simon Willison
|
dfdbdf378a
|
Added /-/permissions debug tool, closes #788
Also started the authentication.rst docs page, refs #786.
Part of authentication work, refs #699.
|
2020-05-31 22:00:36 -07:00 |
|
Simon Willison
|
9f3d4aba31
|
--root option and /-/auth-token view, refs #784
|
2020-05-31 18:16:42 -07:00 |
|
Simon Willison
|
fa27e44fe0
|
datasette.sign() and datasette.unsign() methods, refs #785
|
2020-05-31 18:16:42 -07:00 |
|
Simon Willison
|
1fc6ceefb9
|
Added /-/actor.json - refs #699
Also added JSON highlighting to introspection documentation.
|
2020-05-31 18:16:42 -07:00 |
|
Simon Willison
|
9315bacf6f
|
Implemented datasette.permission_allowed(), refs #699
|
2020-05-31 18:16:42 -07:00 |
|
Simon Willison
|
461c82838d
|
Implemented actor_from_request with tests, refs #699
Also added datasette argument to permission_allowed hook
|
2020-05-31 18:16:42 -07:00 |
|
Simon Willison
|
012c76901a
|
_ prefix for many private methods of Datasette, refs #576
|
2020-05-30 07:38:46 -07:00 |
|
Simon Willison
|
31fb006a9b
|
Added datasette.get_database() method
Refs #576
|
2020-05-30 07:29:59 -07:00 |
|
Simon Willison
|
7bb30c1f11
|
request.url now respects force_https_urls, closes #781
|
2020-05-28 10:10:06 -07:00 |
|
Simon Willison
|
5ab411c733
|
can_render mechanism for register_output_renderer, closes #770
|
2020-05-27 22:57:05 -07:00 |
|
Simon Willison
|
52c4387c7d
|
Redesigned register_output_renderer plugin hook, closes #581
|
2020-05-27 19:21:41 -07:00 |
|
Simon Willison
|
4433306c18
|
Improvements + docs for db.execute() and Results class
* Including new results.first() and results.single_value() methods. Closes #685
|
2020-05-08 09:05:46 -07:00 |
|
Simon Willison
|
9424687e9e
|
Consistently return charset utf-8, closes #752
|
2020-05-04 10:42:10 -07:00 |
|
Simon Willison
|
cef23e8861
|
Started pattern portfolio at /-/patterns, refs #151
|
2020-05-02 20:05:25 -07:00 |
|
Simon Willison
|
1d91ab71d4
|
Directory configuration mode supports metadata.yaml, closes #747
|
2020-04-30 11:47:41 -07:00 |
|
Simon Willison
|
25014ca25e
|
Configuration directory mode, closes #731
|
2020-04-27 09:30:24 -07:00 |
|
Simon Willison
|
1b7b66c465
|
Make request available when rendering custom pages, closes #738
|
2020-04-26 12:01:46 -07:00 |
|
Simon Willison
|
304e7b1d9f
|
Mechanism for creating custom pages using templates
Closes #648
|
2020-04-26 11:46:43 -07:00 |
|
Simon Willison
|
d55fe8cdfc
|
Fixed bug with Templates considered comment, closes #689
|
2020-04-05 12:38:33 -07:00 |
|
Simon Willison
|
e89b0ef2f9
|
Expose extra_template_vars in _contex=1, refs #693
|
2020-04-05 11:49:15 -07:00 |
|
Simon Willison
|
2aaad72789
|
Refactor template setup into Datasette constructor
Closes #707
|
2020-03-26 18:12:43 -07:00 |
|
Simon Willison
|
7656fd64d8
|
base_url configuration setting, closes #394
* base_url configuration setting
* base_url works for static assets as well
|
2020-03-24 17:18:43 -07:00 |
|
Simon Willison
|
e1b5339fdf
|
Do not look for templates_path in default plugins
Closes #697
|
2020-03-08 16:11:18 -07:00 |
|