commit/galaxy-central: natefoo: This is what I get for making one "inconsequential" change after running the tests. =/
1 new changeset in galaxy-central: http://bitbucket.org/galaxy/galaxy-central/changeset/070ac69b2283/ changeset: 070ac69b2283 user: natefoo date: 2011-09-23 14:39:53 summary: This is what I get for making one "inconsequential" change after running the tests. =/ affected #: 1 file (-1 bytes) --- a/lib/galaxy/web/base/controller.py Thu Sep 22 17:13:53 2011 -0400 +++ b/lib/galaxy/web/base/controller.py Fri Sep 23 08:39:53 2011 -0400 @@ -44,35 +44,35 @@ def get_class( self, class_name ): """ Returns the class object that a string denotes. Without this method, we'd have to do eval(<class_name>). """ if class_name == 'History': - item_class = trans.model.History + item_class = self.app.model.History elif class_name == 'HistoryDatasetAssociation': - item_class = trans.model.HistoryDatasetAssociation + item_class = self.app.model.HistoryDatasetAssociation elif class_name == 'Page': - item_class = trans.model.Page + item_class = self.app.model.Page elif class_name == 'StoredWorkflow': - item_class = trans.model.StoredWorkflow + item_class = self.app.model.StoredWorkflow elif class_name == 'Visualization': - item_class = trans.model.Visualization + item_class = self.app.model.Visualization elif class_name == 'Tool': - item_class = trans.model.Tool + item_class = self.app.model.Tool elif class_name == 'Job': - item_class = trans.model.Job + item_class = self.app.model.Job elif class_name == 'User': - item_class = trans.model.User + item_class = self.app.model.User elif class_name == 'Group': - item_class = trans.model.Group + item_class = self.app.model.Group elif class_name == 'Role': - item_class = trans.model.Role + item_class = self.app.model.Role elif class_name == 'Quota': - item_class = trans.model.Quota + item_class = self.app.model.Quota elif class_name == 'Library': - item_class = trans.model.Library + item_class = self.app.model.Library elif class_name == 'LibraryFolder': - item_class = trans.model.LibraryFolder + item_class = self.app.model.LibraryFolder elif class_name == 'LibraryDatasetDatasetAssociation': - item_class = trans.model.LibraryDatasetDatasetAssociation + item_class = self.app.model.LibraryDatasetDatasetAssociation elif class_name == 'LibraryDataset': - item_class = trans.model.LibraryDataset + item_class = self.app.model.LibraryDataset else: item_class = None return item_class @@ -90,7 +90,8 @@ item = trans.sa_session.query( item_class ).get( decoded_id ) assert item is not None except: - raise MessageException( "Invalid %s id ( %s ) specified" % ( class_name, display_id ), type="error" ) + log.exception( "Invalid %s id ( %s ) specified" % ( class_name, id ) ) + raise MessageException( "Invalid %s id ( %s ) specified" % ( class_name, id ), type="error" ) if check_ownership or check_accessible: self.security_check( trans, item, check_ownership, check_accessible, encoded_id ) if deleted == True and not item.deleted: Repository URL: https://bitbucket.org/galaxy/galaxy-central/ -- This is a commit notification from bitbucket.org. You are receiving this because you have the service enabled, addressing the recipient of this email.
participants (1)
-
Bitbucket