datasette/datasette
Claude dd9b83301c
Refactor ColumnType: register classes, return instances with config
- register_column_types() now returns classes instead of instances
- ColumnType.__init__ takes optional config=, baking it into the instance
- get_column_type() returns a ColumnType instance (or None) instead of a
  (name, config) tuple
- get_column_types() returns {col: ColumnType instance} instead of tuples
- Remove get_column_type_class() - no longer needed
- render_cell/validate/transform_value methods no longer take config arg;
  use self.config instead
- render_cell hook takes column_type (ColumnType or None) instead of
  column_type + column_type_config

https://claude.ai/code/session_01SvPEPqHgURTWESRp28pTC3
2026-03-17 05:18:14 +00:00
..
default_permissions register_token_handler() plugin hook for custom API token backends (#2650) 2026-02-25 16:32:45 -08:00
publish Get publish cloudrun working with latest Cloud Run (#2581) 2025-11-05 09:28:41 -08:00
static Fix for column select on Mobile Safari 2026-03-09 18:05:01 -07:00
templates UI for selecting and re-ordering columns on the table page (#2662) 2026-03-09 17:45:24 -07:00
utils Add NOT NULL constraints to column_types primary key columns 2026-03-17 03:58:18 +00:00
views Refactor ColumnType: register classes, return instances with config 2026-03-17 05:18:14 +00:00
__init__.py register_token_handler() plugin hook for custom API token backends (#2650) 2026-02-25 16:32:45 -08:00
__main__.py Add support for running datasette as a module (#556) 2019-07-11 09:07:44 -07:00
actor_auth_cookie.py Remove python-baseconv dependency, refs #1733, closes #1734 2022-05-02 12:39:06 -07:00
app.py Refactor ColumnType: register classes, return instances with config 2026-03-17 05:18:14 +00:00
blob_renderer.py Rename route match groups for consistency, refs #1667, #1660 2022-03-19 09:52:08 -07:00
cli.py Fix startup hook to fire after metadata and schema tables are populated (#2666) 2026-03-16 17:56:40 -07:00
column_types.py Refactor ColumnType: register classes, return instances with config 2026-03-17 05:18:14 +00:00
database.py Black formatting 2026-02-17 13:30:24 -08:00
default_actions.py Move takes_child/takes_parent information from Action to Resource (#2567) 2025-11-01 11:35:08 -07:00
default_column_types.py Refactor ColumnType: register classes, return instances with config 2026-03-17 05:18:14 +00:00
default_magic_parameters.py Fix datetime.utcnow deprecation warning 2024-03-15 15:32:12 -07:00
default_menu_links.py Update permission hooks to include source_plugin column and simplify menu_links 2025-10-25 15:38:07 -07:00
events.py Fix type annotation bugs and remove unused imports 2025-10-26 16:03:13 -07:00
facets.py Black formatting 2026-02-17 13:30:24 -08:00
filters.py Fix type annotation bugs and remove unused imports 2025-10-26 16:03:13 -07:00
forbidden.py Fixed a bunch of unused imports spotted with ruff 2024-02-06 17:27:20 -08:00
handle_exception.py debugger: load 'ipdb' if present 2024-08-20 20:02:35 -07:00
hookspecs.py Refactor ColumnType: register classes, return instances with config 2026-03-17 05:18:14 +00:00
inspect.py Black formatting 2026-02-17 13:30:24 -08:00
permissions.py Black formatting 2026-02-17 13:30:24 -08:00
plugins.py Add column types system for semantic column annotations 2026-03-17 02:40:37 +00:00
renderer.py Fix type annotation bugs and remove unused imports 2025-10-26 16:03:13 -07:00
resources.py Move takes_child/takes_parent information from Action to Resource (#2567) 2025-11-01 11:35:08 -07:00
sql_functions.py _search= queries now correctly escaped, fixes #651 2019-12-29 18:48:30 +00:00
tokens.py register_token_handler() plugin hook for custom API token backends (#2650) 2026-02-25 16:32:45 -08:00
tracer.py Tracer now catches errors, closes #2405 2024-08-21 12:19:18 -07:00
url_builder.py count all rows button on table page, refs #2408 2024-08-21 19:09:25 -07:00
version.py Bump version for 1.0a25 2026-02-25 17:01:03 -08:00