def _create_collection(committer_id, collection, commit_message, commit_cmds):
 collection.validate(strict=False)
 rights_manager.create_new_collection_rights(collection.id, committer_id)
 model = collection_models.CollectionModel(id=collection.id, category=collection.category, title=collection.title, objective=collection.objective, language_code=collection.language_code, tags=collection.tags, schema_version=collection.schema_version, nodes=[collection_node.to_dict() for collection_node in collection.nodes])
 model.commit(committer_id, commit_message, commit_cmds)
 collection.version += 1
 create_collection_summary(collection.id, committer_id)

def _create_collection ( committer_id , collection , commit_message , commit_cmds ) : collection . validate ( strict = False ) rights_manager . create_new_collection_rights ( collection . id , committer_id ) model = collection_models . CollectionModel ( id = collection . id , category = collection . category , title = collection . title , objective = collection . objective , language_code = collection . language_code , tags = collection . tags , schema_version = collection . schema_version , nodes = [ collection_node . to_dict ( ) for collection_node in collection . nodes ] ) model . commit ( committer_id , commit_message , commit_cmds ) collection . version += 1 create_collection_summary ( collection . id , committer_id )
creates a new collection .