From 485e0043a7e25c0002765669a1bfc792ad895ea2 Mon Sep 17 00:00:00 2001 From: Brad Langhorst Date: Wed, 10 Jul 2019 05:22:27 -0400 Subject: [PATCH] implements nicola's suggestion -> snakecase --- lib/galaxy/managers/library_datasets.py | 2 +- lib/galaxy/model/__init__.py | 2 +- lib/galaxy/webapps/base/controller.py | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/galaxy/managers/library_datasets.py b/lib/galaxy/managers/library_datasets.py index 7afd706a7cc..20b76a1bf50 100644 --- a/lib/galaxy/managers/library_datasets.py +++ b/lib/galaxy/managers/library_datasets.py @@ -101,7 +101,7 @@ class LibraryDatasetsManager(datasets.DatasetAssociationManager): ldda.dbkey = new_genome_build changed = True if changed: - ldda.updateParentFolderUpdateTimes() + ldda.update_parent_folder_update_times() trans.sa_session.add(ldda) trans.sa_session.flush() return changed diff --git a/lib/galaxy/model/__init__.py b/lib/galaxy/model/__init__.py index d90101036b5..41a8f8ef5bd 100644 --- a/lib/galaxy/model/__init__.py +++ b/lib/galaxy/model/__init__.py @@ -3594,7 +3594,7 @@ class LibraryDatasetDatasetAssociation(DatasetInstance, HasName, RepresentById): rval['metadata_' + name] = val return rval - def updateParentFolderUpdateTimes(self): + def update_parent_folder_update_times(self): # sets the update_time for all continaing folders up the tree ldda = self diff --git a/lib/galaxy/webapps/base/controller.py b/lib/galaxy/webapps/base/controller.py index 418ebc842db..f08c3b81d0b 100644 --- a/lib/galaxy/webapps/base/controller.py +++ b/lib/galaxy/webapps/base/controller.py @@ -546,7 +546,7 @@ class UsesLibraryMixinItems(SharableItemSecurityMixin): # I don't see a reason why hdas copied into libraries should not be visible. # If there is, refactor `ldda.visible = True` to do this only when adding HDCAs. ldda.visible = True - ldda.updateParentFolderUpdateTimes() + ldda.update_parent_folder_update_times() trans.sa_session.flush() ldda_dict = ldda.to_dict() rval = trans.security.encode_dict_ids(ldda_dict)