Code Repositories xandikos / wip/scheduling
Fix style. Jelmer Vernooń≥ 3 years ago
3 changed file(s) with 9 addition(s) and 7 deletion(s). Raw diff Collapse all Expand all
446446 return None
447447
448448
449 class ScheduleOutboxCollection(StoreBasedCollection, scheduling.ScheduleOutbox):
449 class ScheduleOutboxCollection(StoreBasedCollection,
450 scheduling.ScheduleOutbox):
450451
451452 def get_supported_calendar_components(self):
452453 return ["VEVENT", "VTODO", "VJOURNAL", "VFREEBUSY"]
953954 logging.info('Create addressbook in %s.', resource.store.path)
954955
955956 inbox_path = posixpath.join(
956 principal.relpath,
957 principal.get_schedule_inbox_url())
957 principal.relpath,
958 principal.get_schedule_inbox_url())
958959 try:
959960 resource = backend.create_collection(inbox_path)
960961 except FileExistsError:
964965 logging.info('Create schedule inbox in %s.', resource.store.path)
965966
966967 outbox_path = posixpath.join(
967 principal.relpath,
968 principal.get_schedule_outbox_url())
968 principal.relpath,
969 principal.get_schedule_outbox_url())
969970 try:
970971 resource = backend.create_collection(outbox_path)
971972 except FileExistsError:
17251725
17261726 def _get_dav_features(self, resource):
17271727 # TODO(jelmer): Support access-control
1728 return ['1', '2', '3', 'calendar-access', 'addressbook', 'calendar-auto-schedule',
1729 'extended-mkcol', 'add-member', 'sync-collection', 'quota']
1728 return ['1', '2', '3', 'calendar-access', 'addressbook',
1729 'calendar-auto-schedule', 'extended-mkcol', 'add-member',
1730 'sync-collection', 'quota']
17301731
17311732 def _get_allowed_methods(self, environ):
17321733 """List of supported methods on this endpoint."""