1
0
Fork 0
mirror of https://github.com/Kozea/Radicale.git synced 2025-09-12 20:30:57 +00:00

Remove at_once

This commit is contained in:
Guillaume Ayoub 2016-05-25 14:05:05 +02:00
parent a3c32ee77f
commit 69ec2891fa
2 changed files with 5 additions and 12 deletions

View file

@ -262,12 +262,6 @@ class BaseCollection:
"""
raise NotImplementedError
@contextmanager
def at_once(self):
"""Set a context manager buffering the reads and writes."""
# TODO: use in code
yield
def get_meta(self, key):
"""Get metadata value for collection."""
raise NotImplementedError
@ -474,11 +468,6 @@ class Collection(BaseCollection):
"Can't tranlate name safely to filesystem, "
"skipping component: %s", href)
@contextmanager
def at_once(self):
# TODO: use a file locker
yield
def get_meta(self, key):
props_path = self._filesystem_path + ".props"
if os.path.exists(props_path):