mirror of
https://github.com/Kozea/Radicale.git
synced 2025-09-15 20:36:55 +00:00
Split BaseCollection into BaseStorage and BaseCollection
This commit is contained in:
parent
1453c0b72c
commit
040d8c0fff
15 changed files with 221 additions and 213 deletions
|
@ -22,9 +22,8 @@ from radicale import pathutils, storage
|
|||
from radicale.log import logger
|
||||
|
||||
|
||||
class CollectionVerifyMixin:
|
||||
@classmethod
|
||||
def verify(cls):
|
||||
class StorageVerifyMixin:
|
||||
def verify(self):
|
||||
item_errors = collection_errors = 0
|
||||
|
||||
@contextlib.contextmanager
|
||||
|
@ -51,7 +50,7 @@ class CollectionVerifyMixin:
|
|||
collection = None
|
||||
uids = set()
|
||||
has_child_collections = False
|
||||
for item in cls.discover(path, "1", exception_cm):
|
||||
for item in self.discover(path, "1", exception_cm):
|
||||
if not collection:
|
||||
collection = item
|
||||
collection.get_meta()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue