'Return the value for the specified preference or the value specified as ``default`` if the preference is not set.'

@read_api
def pref(self, name, default=None):

    return self.backend.prefs.get(name, default)
