simonw / datasette-upload-dbs

Upload SQLite database files to Datasette
Apache License 2.0
12 stars 2 forks source link

add register_permissions hookimpl #10

Closed asg017 closed 1 year ago

asg017 commented 1 year ago

Wasn't too sure what takes_database and takes_resource does, but works well locally! Closes #9

simonw commented 1 year ago

This is exactly right - takes_database and takes_resource should be False because you can't say "user can only upload databases within this database" or "can only upload databases relating to this table".

simonw commented 1 year ago

Tests failed because this needs Datasette 1.0 alpha for the from datasette import hookimpl, Permission.