commit/galaxy-central: carlfeberhard: Fix to dcc0c19 when user controller isn't present, gen. defensive programming
1 new commit in galaxy-central: https://bitbucket.org/galaxy/galaxy-central/commits/1da9460ee1d0/ Changeset: 1da9460ee1d0 User: carlfeberhard Date: 2014-04-15 21:40:48 Summary: Fix to dcc0c19 when user controller isn't present, gen. defensive programming Affected #: 1 file diff -r 5e079414e9f9ca489229816553e5133f5b3d5c0e -r 1da9460ee1d0d5f3f89a767e41c40b5188af988c templates/galaxy_client_app.mako --- a/templates/galaxy_client_app.mako +++ b/templates/galaxy_client_app.mako @@ -5,11 +5,17 @@ ## and steal existing attributes from plain objects already created <% config_dict = {} - if 'configuration' in trans.webapp.api_controllers: - config_dict = ( trans.webapp.api_controllers[ 'configuration' ] - .get_config_dict( trans.app.config, trans.user_is_admin() ) ) + user_dict = {} + try: + if 'configuration' in trans.webapp.api_controllers: + config_dict = ( trans.webapp.api_controllers[ 'configuration' ] + .get_config_dict( trans.app.config, trans.user_is_admin() ) ) - user_dict = self.get_user_dict() + if 'users' in trans.webapp.api_controllers: + user_dict = self.get_user_dict() + + except Exception, exc: + pass # genomes # datatypes 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)
-
commits-noreply@bitbucket.org