MCPcopy
hub / github.com/pimutils/vdirsyncer / __init__

Method __init__

vdirsyncer/storage/memory.py:20–27  ·  view source on GitHub ↗
(self, fileext='', **kwargs)

Source from the content-addressed store, hash-verified

18 '''
19
20 def __init__(self, fileext='', **kwargs):
21 if kwargs.get('collection') is not None:
22 raise exceptions.UserError('MemoryStorage does not support '
23 'collections.')
24 self.items = {} # href => (etag, item)
25 self.metadata = {}
26 self.fileext = fileext
27 super().__init__(**kwargs)
28
29 def _get_href(self, item):
30 return item.ident + self.fileext

Callers

nothing calls this directly

Calls 1

getMethod · 0.45

Tested by

no test coverage detected