refactor(855-E L3b ②): 로직 줄 같이 쓰기 끔 — mirror · 스위치 · 빌더 문서 갈래 걷음
- Store_Logic: WRITE · CALC · mirror · _ordered · _headed_row · _picks · _write 지움(로직 JSON 쓰는 곳 0) - Machine.register 의 mirror 줄 · Store_Save._logic_file · Store_Cache 「!= 로직」 표지 걷음 · labor_errors = 있는 기초 키(수식 문서)만(whole.logic 갈래 지움) - M01 Doc: _row · sync_tags · ensure · built · of_row · make 지움 · 읽기 「층바탕」(빌더 문서) 뺌 · 손고침 = 셈 칸을 고친 적 있는 기초(저장 전 문서와 다르면 붙음 · 한 번 붙으면 남음 · 브레인 정함) - M02 Doc_Sk.base_doc · Doc_Sk_Path 층바탕의 빌더 문서 갈래 지움(그 자리 = 지금 문서) - 화면 LogicRow 셈 칸 · [신규] 빈 셈 칸 · 안 쓰는 꼴 셋 지움 - 시험: 855_l3_doc_only = 옛 로직 파일 놓여도 안 읽고 안 씀 · 848_1 손고침 표지 · 848_10 빌더 층 시험 지움 · 파일만 복사한 프로젝트 층(바탕문서 없음) = 지금 문서를 따라감 · 854_2 복사 = 원본 문서 금액(옛 엔진 대조 뺌) · 848_5 · 855_l1 로직 줄 대조 뺌 · labor_errors 손님 셋 = 있는 키 묶음 - 서버 답 243 건 다름 0 · typecheck 0 · 관련 105 파일(717_2a 원래 실패 · 792_3 엔진 몸 일감 몫 빼고) 통과 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
@@ -76,9 +76,7 @@ def _errors(files, whole, names, book, narrowed, keys) -> list[str]:
|
||||
|
||||
|
||||
def save(batch: list[dict]) -> list[dict]:
|
||||
"""요소 · 표 파일 저장 — 단가산출 기초(로직 파일 몫)는 받지 않음(`Store_Logic` · 855 L3 ⓐ)."""
|
||||
if bad := [p.get("file") for p in batch if _logic_file(p.get("file", ""))]:
|
||||
raise store.StoreError(400, f"기초는 기초 저장 길로 — {', '.join(bad)}")
|
||||
"""요소 · 표 파일 저장 — 단가산출 기초는 `Store_Logic`(855 L3 ⓐ · `Store_Make.save` 가 가름)."""
|
||||
with store._LOCK:
|
||||
stale = [
|
||||
p.get("file", "") for p in batch if store.version(p.get("file", "")) != p.get("version")
|
||||
@@ -134,10 +132,6 @@ def save(batch: list[dict]) -> list[dict]:
|
||||
return out
|
||||
|
||||
|
||||
def _logic_file(name: str) -> bool:
|
||||
return name.startswith("로직_") and name.endswith(".json")
|
||||
|
||||
|
||||
def _machine(name: str) -> bool:
|
||||
return name == mmf.NAME and mmf.here(store.FOLDER) # 기계 = 폴더(826-2)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user