def get_user_home(self, user):
        user_home = self._conf['user_home']
        if user_home:
            if callable(user_home):
                return user_home(user)
            elif isinstance(user_home, basestring):
                # Assume we've got a URL if there's a slash in it
                if '/' in user_home:
                    return user_home
                else:
                    mod, func = user_home.rsplit(".", 1)
                    return getattr(import_module(mod), func)(user)
            # If it's not callable and not a string, it's wrong.
            raise ValueError('The user_home setting must be either a string '
                             'or a callable object (e.g. a function).')
        else:
            return self.get_absolute_url()
rewrite update policy so that additional pins are added and not overwritten
dataset/ETHPy150Open CiscoSystems/avos/horizon/base.py/Site.get_user_home--crossover with--dataset/ETHPy150Open twaldear/flask-secure-headers/flask_secure_headers/headers.py/HPKP.update_policy