refactor(858 5-8 ①): 서고 감쌈 걷음 — 부르는 쪽이 한 벌을 바로 부름

- 쓰는 곳: `Labor_Ref.refuse_used` 감쌈 지움 → Router_Layers · Store.delete 가 `Library_Uses.refuse_used` · `MyMachine._uses` · `Material_Own.uses` 지움 → `Library_Uses.machines` · `materials`
- 권한: `Library_Delete.can_write` 별칭 · `Library_Same_Router._can_write` 지움 → `Layer_Access.can_write`
- 층 폴더: `MyMachine_Router._folder` 감쌈 지움 → `Router_Items._root(…, personal=MINE)`(MyMachine_Look 도)
- 화면: Material_Pick `OwnRow` 지움 → 내 재료 Api `MyMaterial` 꼴
- 시험: 797_1 · 840_4 · 821_1 · 733_3 · 735_1 이 감쌈 대신 한 벌을 부름 · 갈아 끼움(monkeypatch)은 `access.can_write`

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
2026-11-18 09:39:25 +09:00
co-authored by Claude Opus 5.5
parent 48c32b54ac
commit 0291a19347
15 changed files with 45 additions and 78 deletions
@@ -215,9 +215,9 @@ def delete(kind: str, name: str, version: str | None = None) -> None:
if (kind, name) in IN_USE:
raise StoreError(409, f"쓰는 양식이라 못 지움 「{name}」 — {IN_USE[(kind, name)]}")
if kind in layers.LIBRARY_KINDS:
from M02_MasterTemplete import M02_Labor_Ref as refs
from M02_MasterTemplete import M02_Library_Uses as library_uses
refs.refuse_used(root(), kind, name)
library_uses.refuse_used(root(), kind, name)
with _LOCK:
if not path.is_file():
raise StoreError(404, f"없는 양식 「{name}」")