mirror of
https://github.com/simonw/datasette.git
synced 2025-12-10 16:51:24 +01:00
Implemented import shortcuts, closes #957
This commit is contained in:
parent
d25b55ab5e
commit
8a25ea9bca
4 changed files with 29 additions and 1 deletions
|
|
@ -300,6 +300,15 @@ def register_routes():
|
|||
def startup(datasette):
|
||||
datasette._startup_hook_fired = True
|
||||
|
||||
# And test some import shortcuts too
|
||||
from datasette import Response
|
||||
from datasette import Forbidden
|
||||
from datasette import NotFound
|
||||
from datasette import hookimpl
|
||||
from datasette import actor_matches_allow
|
||||
|
||||
_ = (Response, Forbidden, NotFound, hookimpl, actor_matches_allow)
|
||||
|
||||
|
||||
@hookimpl
|
||||
def canned_queries(datasette, database, actor):
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue