Skip to content

Commit

Permalink
use serialize_doaps_of_project()
Browse files Browse the repository at this point in the history
  • Loading branch information
jnussbaum committed Oct 11, 2023
1 parent 4cc4480 commit ccb7fb9
Showing 1 changed file with 10 additions and 7 deletions.
17 changes: 10 additions & 7 deletions dsp_permissions_scripts/scenario-tanner/scenario-tanner.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,8 @@
from dsp_permissions_scripts.models.host import Hosts
from dsp_permissions_scripts.models.oap import Oap
from dsp_permissions_scripts.utils.authentication import login
from dsp_permissions_scripts.utils.doap_get import (
get_doaps_of_project,
print_doaps_of_project,
)
from dsp_permissions_scripts.utils.doap_get import get_doaps_of_project
from dsp_permissions_scripts.utils.doap_serialize import serialize_doaps_of_project
from dsp_permissions_scripts.utils.doap_set import apply_updated_doaps_on_server
from dsp_permissions_scripts.utils.oap import apply_updated_oaps_on_server
from dsp_permissions_scripts.utils.project import get_all_resource_oaps_of_project
Expand Down Expand Up @@ -45,12 +43,17 @@ def fix_doaps(
shortcode=shortcode,
token=token,
)
print_doaps_of_project(
doaps=project_doaps,
host=host,
serialize_doaps_of_project(
project_doaps=project_doaps,
shortcode=shortcode,
mode="original",
)
project_doaps_updated = modify_doaps(doaps=project_doaps)
serialize_doaps_of_project(
project_doaps=project_doaps_updated,
shortcode=shortcode,
mode="modified",
)
apply_updated_doaps_on_server(
doaps=project_doaps_updated,
host=host,
Expand Down

0 comments on commit ccb7fb9

Please sign in to comment.