mirror of
https://github.com/Nikolay-Shirokov/cc-1c-skills.git
synced 2026-07-31 00:37:47 +03:00
fix: resolve remaining 19 Python test failures — 285/285 on both runtimes
Script logic fixes (PY mirroring PS1): - skd-compile: fix (?i) regex flag placement for Python 3.11+ - mxl-compile: handle list-of-lists row format (PS1 silently ignores) - subsystem-compile: add "objects" → "content" synonym alias - role-compile: add "rights" → "objects" synonym alias - meta-compile: sort HTTP/Web service method/operation iteration - form-edit: insert ChildItems after Events/AutoCommandBar (not at end) - mxl-compile: sort colWidthMap iteration in both PS1 and PY for deterministic format indices Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
co-authored by
Claude Opus 4.6
parent
4565808b77
commit
972cd5061d
@@ -973,8 +973,16 @@ if elements_list:
|
||||
target_ci = root_ci
|
||||
|
||||
if target_ci is None:
|
||||
# Create ChildItems section in form
|
||||
target_ci = etree.SubElement(root, f"{{{FORM_NS}}}ChildItems")
|
||||
# Create ChildItems section in form — insert after Events or AutoCommandBar
|
||||
target_ci = etree.Element(f"{{{FORM_NS}}}ChildItems")
|
||||
insert_after = root.find("f:Events", NS)
|
||||
if insert_after is None:
|
||||
insert_after = root.find("f:AutoCommandBar", NS)
|
||||
if insert_after is not None:
|
||||
idx = list(root).index(insert_after) + 1
|
||||
root.insert(idx, target_ci)
|
||||
else:
|
||||
root.append(target_ci)
|
||||
root_ci = target_ci
|
||||
|
||||
# Detect indent level
|
||||
|
||||
Reference in New Issue
Block a user