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:
+16
-1
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user