Release 0.3.4 with external processing indexing.

Add virtual baseconf support for external data processors so reindex can discover and index them alongside regular src-based configurations, and update docs to use generic examples without workspace-specific names.
This commit is contained in:
mihailkudravcev
2026-07-21 13:03:25 +03:00
parent 06e13395f8
commit 91521e6604
9 changed files with 195 additions and 24 deletions
+16 -1
View File
@@ -336,12 +336,27 @@ def iter_object_xml_files(
src: Path,
types: set[str] | None = None,
skip_types: set[str] | None = None,
*,
source_kind: str = "src",
external_name: str = "",
) -> list[tuple[str, Path]]:
"""Список (object_type, xml_path) только верхний уровень src/<Folder>/*.xml."""
"""Список (object_type, xml_path) для обычной выгрузки или external processing."""
skip = skip_types or set()
out: list[tuple[str, Path]] = []
if not src.is_dir():
return out
if source_kind == "external_processor":
otype = "ExternalDataProcessor"
if otype in skip:
return out
if types is not None and otype not in types:
return out
if not external_name:
return out
xml = src / f"{external_name}.xml"
if xml.is_file():
out.append((otype, xml))
return out
for folder in sorted(src.iterdir()):
if not folder.is_dir():
continue