def default_calendar(self): if not self._default_calendar: public_id = generate_public_id() new_cal = Calendar() new_cal.public_id = public_id new_cal.namespace = self.namespace new_cal.uid = public_id new_cal.read_only = False new_cal.name = 'default' new_cal.provider_name = 'inbox' self._default_calendar = new_cal return self._default_calendar