1 new commit in galaxy-central: https://bitbucket.org/galaxy/galaxy-central/commits/0155ac3c87ed/ Changeset: 0155ac3c87ed User: carlfeberhard Date: 2015-02-16 21:40:24+00:00 Summary: API, configuration: use getattr instead of config.get since get is limited Affected #: 1 file diff -r e001809f8d6e28607162e558ece72f5590fad6ab -r 0155ac3c87edc23a2edefa54aca7a7d694fb9f33 lib/galaxy/webapps/galaxy/api/configuration.py --- a/lib/galaxy/webapps/galaxy/api/configuration.py +++ b/lib/galaxy/webapps/galaxy/api/configuration.py @@ -63,11 +63,11 @@ self.add_view( 'all', self.serializers.keys() ) def default_serializer( self, trans, config, key ): - return config.get( key, None ) + return getattr( config, key, None ) def add_serializers( self ): def _defaults_to( default ): - return lambda t, i, k: i.get( k, default ) + return lambda t, i, k: getattr( i, k, default ) self.serializers = { #TODO: this is available from user data, remove @@ -90,7 +90,6 @@ 'biostar_url_redirect' : lambda *a: self.url_for( controller='biostar', action='biostar_redirect', qualified=True ), - 'allow_user_creation' : _defaults_to( False ), 'use_remote_user' : _defaults_to( None ), 'remote_user_logout_href' : _defaults_to( '' ), 'enable_cloud_launch' : _defaults_to( False ), @@ -111,7 +110,7 @@ def add_serializers( self ): super( AdminConfigSerializer, self ).add_serializers() def _defaults_to( default ): - return lambda t, i, k: i.get( k, default ) + return lambda t, i, k: getattr( i, k, default ) self.serializers.update({ #TODO: this is available from user data, remove 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.