mirror of
https://github.com/Kozea/Radicale.git
synced 2025-09-15 20:36:55 +00:00
Refactor multifilesystem
This commit is contained in:
parent
f2d63ad7f7
commit
35484c9b79
16 changed files with 1163 additions and 840 deletions
|
@ -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.
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue