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

Update pointer file PREMIS version #466

Merged
merged 1 commit into from
Jun 13, 2019
Merged
Show file tree
Hide file tree
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
2 changes: 1 addition & 1 deletion requirements/base.in
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ gunicorn==19.9.0
jsonfield==2.0.1
logutils==0.3.4.1
lxml==3.7.3
metsrw==0.3.1
metsrw==0.3.8
ndg-httpsclient==0.4.2
python-gnupg==0.4.0
python-keystoneclient==3.10.0
Expand Down
2 changes: 1 addition & 1 deletion requirements/base.txt
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ keystoneauth1==3.14.0 # via python-keystoneclient
logutils==0.3.4.1
git+https://github.com/seatme/django-longer-username.git@seatme#egg=longerusername
lxml==3.7.3
metsrw==0.3.1
metsrw==0.3.8
monotonic==1.5 # via oslo.utils
msgpack==0.6.1 # via oslo.serialization
mysqlclient==1.4.2.post1 # via agentarchives
Expand Down
2 changes: 1 addition & 1 deletion requirements/local.txt
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ logutils==0.3.4.1
git+https://github.com/seatme/django-longer-username.git@seatme#egg=longerusername
lxml==3.7.3
markupsafe==1.1.1 # via jinja2
metsrw==0.3.1
metsrw==0.3.8
monotonic==1.5
msgpack==0.6.1
mysqlclient==1.4.2.post1
Expand Down
2 changes: 1 addition & 1 deletion requirements/production.txt
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ keystoneauth1==3.14.0
logutils==0.3.4.1
git+https://github.com/seatme/django-longer-username.git@seatme#egg=longerusername
lxml==3.7.3
metsrw==0.3.1
metsrw==0.3.8
monotonic==1.5
msgpack==0.6.1
mysqlclient==1.4.2.post1
Expand Down
2 changes: 1 addition & 1 deletion requirements/test.txt
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ keystoneauth1==3.14.0
logutils==0.3.4.1
git+https://github.com/seatme/django-longer-username.git@seatme#egg=longerusername
lxml==3.7.3
metsrw==0.3.1
metsrw==0.3.8
mock==3.0.5 # via pytest-mock, vcrpy
monotonic==1.5
more-itertools==5.0.0 # via pytest
Expand Down
8 changes: 4 additions & 4 deletions storage_service/common/management/commands/import_aip.py
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@
from django.utils.six.moves import input

from administration.models import Settings
from common import utils
from common import premis, utils
from locations import models


Expand Down Expand Up @@ -360,7 +360,7 @@ def compress(aip_model_inst, compression_algorithm):
"""Use the Package model's compress_package method to compress the AIP
being imported, update the Package model's ``size`` attribute, retrieve
PREMIS agents and event for the compression (using the package model's
``get_premis_aip_compression_event`` method) and return a 3-tuple:
``create_premis_aip_compression_event`` method) and return a 3-tuple:
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Bonus changes!! 🎆 Thanks Cole!

(aip_model_inst, compression_event, compression_agents).
"""
if not compression_algorithm:
Expand All @@ -379,8 +379,8 @@ def compress(aip_model_inst, compression_algorithm):
aip_model_inst.current_path = new_current_path
shutil.rmtree(compressed_aip_parent_path)
aip_model_inst.size = utils.recalculate_size(new_full_path)
compression_agents = utils.get_ss_premis_agents()
compression_event = aip_model_inst.get_premis_aip_compression_event(
compression_agents = [premis.SS_AGENT]
compression_event = premis.create_premis_aip_compression_event(
details["event_detail"],
details["event_outcome_detail_note"],
agents=compression_agents,
Expand Down
Loading