mirror of
https://github.com/Nikolay-Shirokov/cc-1c-skills.git
synced 2026-09-05 01:30:54 +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
@@ -1,5 +1,5 @@
|
||||
#!/usr/bin/env python3
|
||||
# role-compile v1.1 — Compile 1C role from JSON
|
||||
# role-compile v1.2 — Compile 1C role from JSON
|
||||
# Source: https://github.com/Nikolay-Shirokov/cc-1c-skills
|
||||
import argparse
|
||||
import json
|
||||
@@ -455,6 +455,10 @@ def main():
|
||||
synonym = str(defn['synonym']) if defn.get('synonym') else role_name
|
||||
comment = str(defn['comment']) if defn.get('comment') else ''
|
||||
|
||||
# Synonym: accept "rights" as alias for "objects"
|
||||
if not defn.get('objects') and defn.get('rights'):
|
||||
defn['objects'] = defn['rights']
|
||||
|
||||
# --- 2. Parse all object entries ---
|
||||
parsed_objects = []
|
||||
if defn.get('objects'):
|
||||
|
||||
Reference in New Issue
Block a user