1
0
Fork 0
mirror of https://github.com/Kozea/Radicale.git synced 2025-09-15 20:36:55 +00:00

Refactor multifilesystem

This commit is contained in:
Unrud 2018-09-04 03:33:50 +02:00
parent f2d63ad7f7
commit 35484c9b79
16 changed files with 1163 additions and 840 deletions

View file

@ -26,8 +26,8 @@ entry.
"""
import contextlib
import json
from contextlib import contextmanager
from hashlib import md5
from importlib import import_module
@ -88,9 +88,8 @@ class BaseCollection:
path = ""
@classmethod
def static_init():
def static_init(cls):
"""init collection copy"""
pass
@property
def owner(self):
@ -323,7 +322,7 @@ class BaseCollection:
return ""
@classmethod
@contextmanager
@contextlib.contextmanager
def acquire_lock(cls, mode, user=None):
"""Set a context manager to lock the whole storage.