-
-
Notifications
You must be signed in to change notification settings - Fork 694
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
Documentation and unit tests for urls.row() urls.row_blob() methods #1048
Comments
The datasette/datasette/utils/__init__.py Lines 84 to 98 in f0bd2d0
This feels like it should be improved before I turn it into a documented API. (Note that this API deals with a |
Also related: |
I'm considering changing these functions to accept the def row(self, database, table, row):
...
def row_blob(self, database, table, row, column):
... Just one catch: in order to generate the correct |
None of the potential solutions for that problem are particularly appealing:
|
If I do require Current hook: https://docs.datasette.io/en/latest/plugin_hooks.html#render-cell-row-value-column-table-database-datasette datasette/datasette/hookspecs.py Lines 62 to 64 in 035dc5e
The hook is called in two places in the codebase - when rendering a table ( datasette/datasette/views/table.py Lines 897 to 904 in 6373bb3
And when rendering an arbitrary query: datasette/datasette/views/database.py Lines 377 to 384 in 6373bb3
Note that in that second one |
I think the best way to do this is to change the method signatures to: def row(self, database, table, row, pks):
...
def row_blob(self, database, table, row, pks, column):
... |
But do I need to pass the |
datasette/datasette/app.py
Lines 1307 to 1313 in 5db7ae3
The text was updated successfully, but these errors were encountered: