fix create_temp_zip name chagne
@@ -325,19 +325,19 @@ def delete_zip(zip_path):
@shared_task
-def create_temp_zip(resource_id, input_path, output_path, dataset_pathname=None, sf_zip=False):
+def create_temp_zip(resource_id, input_path, output_path, aggregation_name=None, sf_zip=False):
""" Create temporary zip file from input_path and store in output_path
:param resource_id: the short_id of a resource
:param input_path: full irods path of input starting with federation path
:param output_path: full irods path of output starting with federation path
- :param dataset_pathname: The name of the aggregation to zip
+ :param aggregation_name: The name of the aggregation to zip
:param sf_zip: signals a single file to zip
"""
from hs_core.hydroshare.utils import get_resource_by_shortkey
res = get_resource_by_shortkey(resource_id)
aggregation = None
- if dataset_pathname:
- aggregation = res.get_aggregation_by_dataset_pathname(dataset_pathname)
+ if aggregation_name:
+ aggregation = res.get_aggregation_by_aggregation_name(aggregation_name)
istorage = res.get_irods_storage() # invoke federated storage as necessary
if res.resource_type == "CompositeResource":
