1"""Per-user data storage for EngineDesign.
3A thin binding of :mod:`stardesign.userdata` to this app's ``<app>`` segment.
4The names below are re-exported deliberately: every call site in this backend
5says ``userdata.current_user(request)``, and keeping that shape is what let the
6shared package land without touching any of them.
8See stardesign/userdata.py for the layout, the identity rules, and why the path
9sanitising matters now that ``?owner=`` can name another user's folder.
12from pathlib
import Path
21_DEFAULT_ROOT = Path(__file__).resolve().parents[1] /
".userdata"
23store =
UserData(APP, default_root=_DEFAULT_ROOT)
25current_user = store.current_user
26user_dir = store.user_dir
27all_users = store.all_users
28list_configs = store.list_configs
29read_config = store.read_config
30write_config = store.write_config
31delete_config = store.delete_config