-
-
Notifications
You must be signed in to change notification settings - Fork 676
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
render_cell documentation example doesn't match the method signature #1826
Comments
This is deliberate. The Datasette plugin system allows you to specify only a subset of the parameters for a hook - in this example, only the There's a note about this at the very top of that documentation page: https://docs.datasette.io/en/stable/plugin_hooks.html#plugin-hooks
|
Though now I notice that the copy right there needs to be updated to reflect the new |
I'm glad the bug report served some purpose. Frankly I just needed the
method signature, that is why the documentation you mention wasn't read.
…On Tue, Sep 27, 2022, 9:05 PM Simon Willison ***@***.***> wrote:
Though now I notice that the copy right there needs to be updated to
reflect the new row parameter to render_cell!
—
Reply to this email directly, view it on GitHub
<#1826 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AP46PCLI6KVDQTFLWVZODRLWAO72JANCNFSM6AAAAAAQXKWIJA>
.
You are receiving this because you authored the thread.Message ID:
***@***.***>
|
Open Datasette stable doc at https://docs.datasette.io/en/stable/plugin_hooks.html?highlight=render_cell#render-cell-row-value-column-table-database-datasette
render_cell plugin hook method signature is
render_cell(row, value, column, table, database, datasette)
, the example shown inline usesrender_cell(value)
.The text was updated successfully, but these errors were encountered: