@@ -590,21 +590,21 @@ def delete_regulation_group(regulation_group: RegulationGroup, plan_id: str | No
590
590
feature = RegulationGroupLayer .feature_from_model (regulation_group , plan_id )
591
591
layer = RegulationGroupLayer .get_from_project ()
592
592
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)
596
596
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)
600
600
601
601
_delete_feature (feature , layer , "Kaavamääräysryhmän poisto" )
602
602
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")
608
608
609
609
610
610
def save_regulation_group_as_config (regulation_group : RegulationGroup ):
0 commit comments