'expects activities to be a dict like this {\'activity_id\': Activity}'

def get_hydrated(self, activities):

    assert self.dehydrated, 'not    dehydrated    yet'
    for activity_id in self._activity_ids:
        self.activities.append(activities[activity_id])
    self._activity_ids = []
    self.dehydrated = False
    return self
