-
-
Notifications
You must be signed in to change notification settings - Fork 703
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Mechanism for register_output_renderer to suggest extension or not #645
Comments
Plugins are currently expected to return this: @hookimpl
def register_output_renderer(datasette):
return {
"extension": "test",
"callback": render_test
} We can add an optional third argument, If that dictionary key is omitted, Datasette will treat this test as returning |
It should be optionally awaitable - as should the existing datasette/datasette/views/base.py Lines 124 to 135 in 8c642f0
|
I'm going to add unit tests for the hook, and as part of that I'll fix the weird thing at the moment where the plugins for the unit tests are defined inside a quoted string as opposed to their own separate file. |
This is a duplicate of a more recent, more developed issue: #770 |
datasette-atom only works if the user constructs a SQL query with specific output columns (
atom_id
,atom_updated
etc).It would be good if the
.atom
link wasn't shown on the query/table page unless those columns were present. Right now you get a link which results in a 400 error:See also #581.
The text was updated successfully, but these errors were encountered: