File tree 1 file changed +10
-0
lines changed
arho_feature_template/core
1 file changed +10
-0
lines changed Original file line number Diff line number Diff line change @@ -681,10 +681,20 @@ def save_additional_information(additional_information: AdditionalInformation) -
681
681
return feature
682
682
683
683
684
+ def delete_additional_information (additional_information : AdditionalInformation ):
685
+ feature = AdditionalInformationLayer .feature_from_model (additional_information )
686
+ layer = AdditionalInformationLayer .get_from_project ()
687
+
688
+ _delete_feature (feature , layer , "Lisätiedon poisto" )
689
+
690
+
684
691
def delete_regulation (regulation : Regulation ):
685
692
feature = PlanRegulationLayer .feature_from_model (regulation )
686
693
layer = PlanRegulationLayer .get_from_project ()
687
694
695
+ for ai in regulation .additional_information :
696
+ delete_additional_information (ai )
697
+
688
698
_delete_feature (feature , layer , "Kaavamääräyksen poisto" )
689
699
690
700
You can’t perform that action at this time.
0 commit comments