예제 #1
0
 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
예제 #2
0
파일: account.py 프로젝트: apolmig/inbox
 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