docssetr.blogg.se

Iconmenu command fields mycommand
Iconmenu command fields mycommand





iconmenu command fields mycommand

POST requests to endpoints that do not support that HTTP verb now return a 405 error.Improved documentation for Running Datasette behind a proxy to recommend using ProxyPreservehost On with Apache.Major performance improvement for Datasette faceting.The menu_links(), table_actions() and database_actions() plugin hooks all gained a new optional request argument providing access to the current request.New plugin hook: skip_csrf(datasette, scope), for opting out of CSRF protection based on the incoming request.New plugin hook: get_metadata(datasette, key, database, table), for returning custom metadata for an instance, database or table."searchmode": "raw" table metadata option for defaulting a table to executing SQLite full-text search syntax without first escaping it, see Advanced SQLite search queries.New datasette -uds /tmp/datasette.sock option for binding Datasette to a Unix domain socket, see proxy documentation ( #1388).Column cog menu no longer shows the option to facet by a column that is already selected by the default facets in metadata.Fixed bug where ?_next=x&_sort=rowid could throw an error.datasette.utils parse_metadata(content) function, used by the new datasette-remote-metadata plugin, is now a documented API.If Rich is installed in the same virtual environment as Datasette, it will be used to provide enhanced display of error tracebacks on the console.New -cpu option for datasette publish cloudrun.New hide_sql canned query option for defaulting to hiding the SQL query used by a canned query, see Additional canned query options.register_routes(datasette) plugin hook now accepts an optional datasette argument.This means the hook can execute SQL queries. The render_cell() plugin hook can now return an awaitable function.The base.html template now wraps everything other than the in a element, to help with advanced CSS customization.datasette.databases property is now a documented API.Renamed -help-config option to -help-settings.

#Iconmenu command fields mycommand code

  • Code that figures out which named parameters a SQL query takes in order to display form fields for them is no longer confused by strings that contain colon characters.
  • The -cors option now causes Datasette to return the Access-Control-Allow-Headers: Authorization header, in addition to Access-Control-Allow-Origin: *.
  • Upgraded dependency httpx 0.20 - the undocumented allow_redirects= parameter to datasette.client is now follow_redirects=, and defaults to False where it previously defaulted to True.
  • Adding ?_facet_size=max to a table page now shows the number of unique values in each facet.
  • New register_commands() plugin hook allows plugins to register additional Datasette CLI commands, e.g.
  • iconmenu command fields mycommand

    Columns can now have associated metadata descriptions in metadata.json, see Column descriptions.







    Iconmenu command fields mycommand