Let a theme set the job-search report: a report kind for themes, a context of plain values and a remembered choice #340
Labels
No labels
accessibility
authentication
breaking change
bug
documentation
enhancement
interface
internationalisation
observability
performance
security
tier
1
tier
2
tier
3
tier/4
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
Postulo/postulo#340
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
The job-search report is drawn from one fixed template. The templates plugin is asked to offer "templates for job searching reports" (postulo/postulo-templates#4), and a plugin has no way to: the report has no kind a theme can set.
What exists today
ReportPDFViewand thereport_pdferrand both name the template as a literal:applications/report_print.html(src/postulo/applications/views.py:1208,src/postulo/applications/slow.py:38).src/postulo/documents/kinds.py, #162).ThemeKindiscv,portfolio,letter.src/postulo/plugins/themes.py).Reportdataclass (src/postulo/applications/reports.py), which is not onpostulo.plugins.api.CV.themeandCoverLetter.themeexist.slow.py).@page { size: A4 }in the template).Proposal
ThemeKind.REPORT, set on the report's document kind. Postulo's own themes set every kind, soplainandclassiceach gain a report template; today's becomesplain's.themes.template_for) in both places.document_language,document_direction,document_titleandcsp_nonceas a CV has.Decisions
Needed by
postulo/postulo-templates#4. The paper a report is drawn on is #344.
Done when
postulo.plugins.apiget their line in the wiki's Writing a plugin (tests/test_wiki_surface.py) and a test intests/test_plugin_surface.py; new pages join the page-coverage walk (tests/test_page_coverage.py) and the isolation sweep (tests/security/test_isolation_sweep.py); new strings go in the working catalogues (English, French, and European and Brazilian Portuguese as drafts).From the list of template improvements of 2026-09-30.