Extract gui-side JSON persistence into config.py #126

Open
opened 2026-08-23 01:44:30 -04:00 by mysticalsoap · 0 comments
Owner

The #83 seam-2 move: gui-side JSON persistence into config.py, which already owns the service side of the same job.

Moves:

  • AqomuiGui.load_json and JSON_FILE_LIST
  • the inline with open(...): json.dump(...) sites (server.json, protocol.json, profile.json, bypass_apps.json, last_server.json)
  • AqomuiCli.load_json is a verbatim copy — one helper serves both entry points

Interface: load_json(path) -> dict, save_json(path, obj), and the per-file path constants. config.py stays Qt-free, so the cli keeps importing it (#83 placement rule).

Tangle: the server catalog (#125) takes over the server.json/protocol.json sites; whichever lands second absorbs the other's half.

The #83 seam-2 move: gui-side JSON persistence into config.py, which already owns the service side of the same job. Moves: - `AqomuiGui.load_json` and `JSON_FILE_LIST` - the inline `with open(...): json.dump(...)` sites (server.json, protocol.json, profile.json, bypass_apps.json, last_server.json) - `AqomuiCli.load_json` is a verbatim copy — one helper serves both entry points Interface: `load_json(path) -> dict`, `save_json(path, obj)`, and the per-file path constants. config.py stays Qt-free, so the cli keeps importing it (#83 placement rule). Tangle: the server catalog (#125) takes over the server.json/protocol.json sites; whichever lands second absorbs the other's half.
Sign in to join this conversation.
No milestone
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
mysticalsoap/aqomui#126
No description provided.