'Moves all objects (players/things) to their home location or
to default home.'

def clear_contents(self):

    default_home_id = int(settings.DEFAULT_HOME.lstrip('#'))
    try:
        default_home = ObjectDB.objects.get(id=default_home_id)
        if (default_home.dbid == self.dbid):
            default_home = None
    except Exception:
        string = _("Could    not    find    default    home    '(#%d)'.")
        logger.log_err((string % default_home_id))
        default_home = None
    for obj in self.contents:
        home = obj.home
        if ((not home) or (home and (home.dbid == self.dbid))):
            obj.home = default_home
            home = default_home
        if (not home):
            string = "Missing    default    home,    '%s(#%d)'    "
            string += 'now    has    a    null    location.'
            obj.location = None
            obj.msg(_('Something    went    wrong!    You    are    dumped    into    nowhere.    Contact    an    admin.'))
            logger.log_err((string % (obj.name, obj.dbid)))
            return
        if obj.has_player:
            if home:
                string = 'Your    current    location    has    ceased    to    exist,'
                string += '    moving    you    to    %s(#%d).'
                obj.msg((_(string) % (home.name, home.dbid)))
            else:
                string = 'This    place    should    not    exist    ...    contact    an    admin.'
                obj.msg(_(string))
        obj.move_to(home)
