'Return a dictionary with (a subset of) current Galaxy settings.
If `return_admin` also include a subset of more sensitive keys.
Pass in `view` (String) and comma seperated list of keys to control which
configuration settings are returned.'

def get_config_dict(self, trans, return_admin=False, view=None, keys=None, default_view='all'):

    serializer = self.config_serializer
    if return_admin:
        serializer = self.admin_config_serializer
    serialized = serializer.serialize_to_view(self.app.config, view=view, keys=keys, default_view=default_view)
    return serialized
