Merge pull request #735 from jmchilton/collection_fix

Fix for 13ea86753a.
This commit is contained in:
Martin Cech
2015-09-15 16:07:24 -04:00
+2 -14
View File
@@ -61,7 +61,7 @@ class DatasetCollectionManager( object ):
if element_identifiers and not trusted_identifiers:
validate_input_element_identifiers( element_identifiers )
dataset_collection = self.__create_dataset_collection(
dataset_collection = self.create_dataset_collection(
trans=trans,
collection_type=collection_type,
element_identifiers=element_identifiers,
@@ -107,18 +107,6 @@ class DatasetCollectionManager( object ):
return self.__persist( dataset_collection_instance )
def create_dataset_collection(
self,
trans,
collection_type,
elements=None,
):
return self.__create_dataset_collection(
trans=trans,
collection_type=collection_type,
elements=elements,
)
def __create_dataset_collection(
self,
trans,
collection_type,
@@ -253,7 +241,7 @@ class DatasetCollectionManager( object ):
# element identifier is a dict with src new_collection...
collection_type = element_identifier.get( "collection_type", None )
collection = self.__create_dataset_collection(
collection = self.create_dataset_collection(
trans=trans,
collection_type=collection_type,
element_identifiers=element_identifier[ "element_identifiers" ],