Skip to content

Commit 7c5d81a

Browse files
committed
remove manual plan proposition and regulation deleting
1 parent 8a54839 commit 7c5d81a

File tree

1 file changed

+11
-11
lines changed

1 file changed

+11
-11
lines changed

arho_feature_template/core/plan_manager.py

+11-11
Original file line numberDiff line numberDiff line change
@@ -590,21 +590,21 @@ def delete_regulation_group(regulation_group: RegulationGroup, plan_id: str | No
590590
feature = RegulationGroupLayer.feature_from_model(regulation_group, plan_id)
591591
layer = RegulationGroupLayer.get_from_project()
592592

593-
# Handle regulations
594-
for regulation in regulation_group.regulations:
595-
delete_regulation(regulation)
593+
# # Handle regulations
594+
# for regulation in regulation_group.regulations:
595+
# delete_regulation(regulation)
596596

597-
# Handle propositions
598-
for proposition in regulation_group.propositions:
599-
delete_proposition(proposition)
597+
# # Handle propositions
598+
# for proposition in regulation_group.propositions:
599+
# delete_proposition(proposition)
600600

601601
_delete_feature(feature, layer, "Kaavamääräysryhmän poisto")
602602

603-
# Handle assocations
604-
associations = RegulationGroupAssociationLayer.get_associations_for_regulation_group(str(regulation_group.id_))
605-
association_layer = RegulationGroupAssociationLayer.get_from_project()
606-
for association in associations:
607-
_delete_feature(association, association_layer, "Kaavamääräysryhmän assosiaation poisto")
603+
# # Handle assocations
604+
# associations = RegulationGroupAssociationLayer.get_associations_for_regulation_group(str(regulation_group.id_))
605+
# association_layer = RegulationGroupAssociationLayer.get_from_project()
606+
# for association in associations:
607+
# _delete_feature(association, association_layer, "Kaavamääräysryhmän assosiaation poisto")
608608

609609

610610
def save_regulation_group_as_config(regulation_group: RegulationGroup):

0 commit comments

Comments
 (0)