wrolpi/modules
Roland ca1f6dd886
Model reprs read only loaded state
A repr runs inside log calls. Reading a relationship or an expired column there runs a query, and
on an object whose session is gone it raises DetachedInstanceError instead of logging. Archive's
repr also stat'ed its SingleFile file on disk.

`wrolpi.common.loaded()` follows attributes through state that is already loaded (primary keys
from the identity key) and never runs SQL. Every model repr uses it; with everything loaded the
output is unchanged, except Video and Archive now show the FileGroup's primary path.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-11 16:38:37 -06:00
..
archive Model reprs read only loaded state 2026-10-11 16:38:37 -06:00
docs Model reprs read only loaded state 2026-10-11 16:38:37 -06:00
flasher db: request-path library functions use the request's connection (#774) 2026-10-04 11:05:20 -06:00
inventory Strip whitespace from inventory item string values on save 2026-07-30 17:34:46 -06:00
map Map previews that never drew, and a Docker map with no world under it (#658) 2026-08-11 20:37:23 -06:00
repos Model reprs read only loaded state 2026-10-11 16:38:37 -06:00
videos Model reprs read only loaded state 2026-10-11 16:38:37 -06:00
zim Model reprs read only loaded state 2026-10-11 16:38:37 -06:00
__init__.py Add a Repos module that mirrors git repositories (#783) 2026-10-07 15:16:58 -06:00