mirror of
https://github.com/Nikolay-Shirokov/cc-1c-skills.git
synced 2026-06-14 09:54:56 +03:00
feat(meta-compile): add ManagerModule.bsl for Report and DataProcessor
Create ManagerModule.bsl alongside ObjectModule.bsl for Report and DataProcessor types — required for reports with НастроитьВариантыОтчета. Bump version v1.2 → v1.3 Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
# meta-compile v1.2 — Compile 1C metadata object from JSON
|
||||
# meta-compile v1.3 — Compile 1C metadata object from JSON
|
||||
# Source: https://github.com/Nikolay-Shirokov/cc-1c-skills
|
||||
param(
|
||||
[Parameter(Mandatory)]
|
||||
@@ -2760,6 +2760,8 @@ $typesWithObjectModule = @("Catalog","Document","Report","DataProcessor","Exchan
|
||||
"BusinessProcess","Task")
|
||||
# Types with RecordSetModule.bsl
|
||||
$typesWithRecordSetModule = @("InformationRegister","AccumulationRegister","AccountingRegister","CalculationRegister")
|
||||
# Types with ManagerModule.bsl
|
||||
$typesWithManagerModule = @("Report","DataProcessor")
|
||||
# Types with Module.bsl (general)
|
||||
$typesWithModule = @("CommonModule","HTTPService","WebService")
|
||||
|
||||
@@ -2770,6 +2772,13 @@ if ($objType -in $typesWithObjectModule) {
|
||||
$modulesCreated += $modulePath
|
||||
}
|
||||
}
|
||||
if ($objType -in $typesWithManagerModule) {
|
||||
$modulePath = Join-Path $extDir "ManagerModule.bsl"
|
||||
if (-not (Test-Path $modulePath)) {
|
||||
[System.IO.File]::WriteAllText($modulePath, "", $enc)
|
||||
$modulesCreated += $modulePath
|
||||
}
|
||||
}
|
||||
if ($objType -in $typesWithRecordSetModule) {
|
||||
$modulePath = Join-Path $extDir "RecordSetModule.bsl"
|
||||
if (-not (Test-Path $modulePath)) {
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
#!/usr/bin/env python3
|
||||
# meta-compile v1.2 — Compile 1C metadata object from JSON
|
||||
# meta-compile v1.3 — Compile 1C metadata object from JSON
|
||||
# Source: https://github.com/Nikolay-Shirokov/cc-1c-skills
|
||||
|
||||
import argparse
|
||||
@@ -2401,6 +2401,7 @@ types_with_object_module = [
|
||||
types_with_record_set_module = [
|
||||
'InformationRegister', 'AccumulationRegister', 'AccountingRegister', 'CalculationRegister',
|
||||
]
|
||||
types_with_manager_module = ['Report', 'DataProcessor']
|
||||
types_with_module = ['CommonModule', 'HTTPService', 'WebService']
|
||||
|
||||
if obj_type in types_with_object_module:
|
||||
@@ -2409,6 +2410,12 @@ if obj_type in types_with_object_module:
|
||||
write_utf8_bom(module_path, '')
|
||||
modules_created.append(module_path)
|
||||
|
||||
if obj_type in types_with_manager_module:
|
||||
module_path = os.path.join(ext_dir, 'ManagerModule.bsl')
|
||||
if not os.path.isfile(module_path):
|
||||
write_utf8_bom(module_path, '')
|
||||
modules_created.append(module_path)
|
||||
|
||||
if obj_type in types_with_record_set_module:
|
||||
module_path = os.path.join(ext_dir, 'RecordSetModule.bsl')
|
||||
if not os.path.isfile(module_path):
|
||||
|
||||
Reference in New Issue
Block a user