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
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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