Fix style.
Jelmer Vernooij
3 years ago
446 | 446 |
return None
|
447 | 447 |
|
448 | 448 |
|
449 | |
class ScheduleOutboxCollection(StoreBasedCollection, scheduling.ScheduleOutbox):
|
|
449 |
class ScheduleOutboxCollection(StoreBasedCollection,
|
|
450 |
scheduling.ScheduleOutbox):
|
450 | 451 |
|
451 | 452 |
def get_supported_calendar_components(self):
|
452 | 453 |
return ["VEVENT", "VTODO", "VJOURNAL", "VFREEBUSY"]
|
|
953 | 954 |
logging.info('Create addressbook in %s.', resource.store.path)
|
954 | 955 |
|
955 | 956 |
inbox_path = posixpath.join(
|
956 | |
principal.relpath,
|
957 | |
principal.get_schedule_inbox_url())
|
|
957 |
principal.relpath,
|
|
958 |
principal.get_schedule_inbox_url())
|
958 | 959 |
try:
|
959 | 960 |
resource = backend.create_collection(inbox_path)
|
960 | 961 |
except FileExistsError:
|
|
964 | 965 |
logging.info('Create schedule inbox in %s.', resource.store.path)
|
965 | 966 |
|
966 | 967 |
outbox_path = posixpath.join(
|
967 | |
principal.relpath,
|
968 | |
principal.get_schedule_outbox_url())
|
|
968 |
principal.relpath,
|
|
969 |
principal.get_schedule_outbox_url())
|
969 | 970 |
try:
|
970 | 971 |
resource = backend.create_collection(outbox_path)
|
971 | 972 |
except FileExistsError:
|
1725 | 1725 |
|
1726 | 1726 |
def _get_dav_features(self, resource):
|
1727 | 1727 |
# 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']
|
1730 | 1731 |
|
1731 | 1732 |
def _get_allowed_methods(self, environ):
|
1732 | 1733 |
"""List of supported methods on this endpoint."""
|