Skip to content

Commit

Permalink
[refs #98703] Adding missing 'url' parameter.
Browse files Browse the repository at this point in the history
  • Loading branch information
david-batranu committed Sep 24, 2018
1 parent 000f9e7 commit 415c20d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions esdrt/content/upgrades/55_56.py
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ def upgrade(context):
install_workflow(context)


def get_object(catalog, brain):
def get_object(catalog, brain, url):
try:
return brain.getObject()
except KeyError:
Expand Down Expand Up @@ -82,7 +82,7 @@ def update_ptype(catalog, ptype, do_reindex):
for idx, brain in enumerate(brains, start=1):
url = brain.getURL()

content = get_object(catalog, brain)
content = get_object(catalog, brain, url)

if content:
update_permissions(content)
Expand Down

0 comments on commit 415c20d

Please sign in to comment.