Repository navigation
Config sections: [Stationery] draws the documents, [Printing] prints them - #17
Merged
Merged
Conversation
…them The company details and logos that were under [Printing] are now [Stationery], and the auto-printing settings that were under [Robot] are now [Printing], with the printed history's result_count, which matches how the app works. An email.cfg written for the old names is still read, and noted in the log; tools/migrate_config.py rewrites one in place, keeping its comments and order, and the original beside it. The Stationery page lists the [Stationery] values in use, which are set in email.cfg, and whether each logo file is there. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01DKcyxWnp9B7ZMfow73wHmP
The JSON that /job returns lists a job's PDFs under "stationary", the old spelling of the module and sections. It is now "stationery". The script that reads it, abfw_www/scripts/printerface-link.py, is changed to read either spelling so that it works against both versions of Printerface. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01DKcyxWnp9B7ZMfow73wHmP
Tidies the sections of
email.cfgso they line up with how the app works.[Stationery]is how documents are drawn: the company details, terms and logos that were under[Printing].[Printing]is what is done with documents once drawn: the auto-printing settings that were under[Robot], plusresult_countfor the printed history.[Web],[Gmail],[Main]and[History]are unchanged.Old files still work. An
email.cfgwritten with[Printing](company details) and[Robot]is read as the new layout, with a notice in the log, so the production config can be left until release.tools/migrate_config.pyrewrites one in place, keeping its comments and order, with--dry-runand a.before-sectionscopy of the original.Settings > Stationery now lists the
[Stationery]values in use, marks those set inemail.cfgrather than the defaults, and flags a logo file that is missing.Renames.
stationary.pyis nowstationery.py(withTestStationery), and a few misspellings in the README and the debug page are fixed. The key under which/jobreturns a job's PDF links is nowstationery(wasstationary).scripts/printerface-link.pyin abfw_www reads either spelling, so it works against old and new Printerface; that change is a separate PR in abfw_www.README has a new Configuration section describing each section.
python -m unittest discover --pattern='*.py'withPRINTERFACE_HOMEat a scratch directory: 164 tests, 1 skipped (the corpus test). Running on printertest.🤖 Generated with Claude Code
https://claude.ai/code/session_01DKcyxWnp9B7ZMfow73wHmP