Skip to content

Config sections: [Stationery] draws the documents, [Printing] prints them - #17

Merged
shuckc merged 2 commits into
masterfrom
config-sections
Nov 24, 2026
Merged

shuckc merged 2 commits into
masterfrom
config-sections

Conversation

@shuckc

@shuckc shuckc commented Nov 24, 2026 •

Copy link
Copy Markdown
Member

Tidies the sections of email.cfg so 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], plus result_count for the printed history.
  • [Web], [Gmail], [Main] and [History] are unchanged.

Old files still work. An email.cfg written 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.py rewrites one in place, keeping its comments and order, with --dry-run and a .before-sections copy of the original.

Settings > Stationery now lists the [Stationery] values in use, marks those set in email.cfg rather than the defaults, and flags a logo file that is missing.

Renames. stationary.py is now stationery.py (with TestStationery), and a few misspellings in the README and the debug page are fixed. The key under which /job returns a job's PDF links is now stationery (was stationary). scripts/printerface-link.py in 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' with PRINTERFACE_HOME at a scratch directory: 164 tests, 1 skipped (the corpus test). Running on printertest.

🤖 Generated with Claude Code

https://claude.ai/code/session_01DKcyxWnp9B7ZMfow73wHmP

shuckc and others added 2 commits November 24, 2026 10:49
…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
@shuckc
shuckc merged commit cd3ee3f into master Nov 24, 2026
2 checks passed