mirror of
https://github.com/Nikolay-Shirokov/cc-1c-skills.git
synced 2026-08-28 05:59:41 +03:00
feat(meta-info): show LimitLevelCount/LevelCount for hierarchical catalogs
Closes #10 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
bb02c1b0bd
commit
ffa3189442
@@ -1,4 +1,4 @@
|
||||
# meta-info v1.0 — Compact summary of 1C metadata object (Python port)
|
||||
# meta-info v1.1 — Compact summary of 1C metadata object (Python port)
|
||||
# Source: https://github.com/Nikolay-Shirokov/cc-1c-skills
|
||||
import argparse
|
||||
import os
|
||||
@@ -793,6 +793,12 @@ if not drill_done:
|
||||
if hier is not None and inner_text(hier) == "true":
|
||||
ht = find(props, "md:HierarchyType")
|
||||
ht_text = "группы и элементы" if ht is not None and inner_text(ht) == "HierarchyFoldersAndItems" else "элементы"
|
||||
limit_node = find(props, "md:LimitLevelCount")
|
||||
level_node = find(props, "md:LevelCount")
|
||||
if limit_node is not None and inner_text(limit_node) == "true" and level_node is not None:
|
||||
ht_text += f", уровней: {inner_text(level_node)}"
|
||||
else:
|
||||
ht_text += ", без ограничения уровней"
|
||||
parts.append(f"Иерархический: {ht_text}")
|
||||
code_len = find(props, "md:CodeLength")
|
||||
desc_len = find(props, "md:DescriptionLength")
|
||||
|
||||
Reference in New Issue
Block a user