def METHOD_NAME(self, ref):
    """ update view according to ref params """
    self.set_active(ref.__class__)
    for n, c in self.spin_cfg.iteritems():
        w = self.b.get_object("spin_{}".format(n))
        try:
            w.set_value(c['r2d'](getattr(ref, n)[0]))
            w.set_sensitive(True)
        except AttributeError:
            w.set_sensitive(False)