Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Optimoi kohteiden poistoa #194

Merged
merged 1 commit into from
Feb 24, 2025
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 0 additions & 17 deletions arho_feature_template/core/plan_manager.py
Original file line number Diff line number Diff line change
Expand Up @@ -625,22 +625,8 @@ def delete_regulation_group(regulation_group: RegulationGroup, plan_id: str | No
feature = RegulationGroupLayer.feature_from_model(regulation_group, plan_id)
layer = RegulationGroupLayer.get_from_project()

# Delete regulations
for regulation in regulation_group.regulations:
delete_regulation(regulation)

# Delete propositions
for proposition in regulation_group.propositions:
delete_proposition(proposition)

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

# # Handle assocations
# associations = RegulationGroupAssociationLayer.get_associations_for_regulation_group(str(regulation_group.id_))
# association_layer = RegulationGroupAssociationLayer.get_from_project()
# for association in associations:
# _delete_feature(association, association_layer, "Kaavamääräysryhmän assosiaation poisto")


def save_regulation_group_as_config(regulation_group: RegulationGroup):
pass
Expand Down Expand Up @@ -697,9 +683,6 @@ def delete_regulation(regulation: Regulation):
feature = PlanRegulationLayer.feature_from_model(regulation)
layer = PlanRegulationLayer.get_from_project()

for ai in regulation.additional_information:
delete_additional_information(ai)

_delete_feature(feature, layer, "Kaavamääräyksen poisto")


Expand Down
Loading