mirror of
https://github.com/samsonjs/vdirsyncer.git
synced 2026-04-27 14:57:41 +00:00
Merge pull request #960 from dilyanpalauzov/readonly_metadata
storage/base: for read_only storages do not overwrite the meta data
This commit is contained in:
commit
10659b80ba
1 changed files with 1 additions and 1 deletions
|
|
@ -28,7 +28,7 @@ class StorageMeta(ABCMeta):
|
||||||
def __init__(cls, name, bases, d):
|
def __init__(cls, name, bases, d):
|
||||||
"""Wrap mutating methods to fail if the storage is readonly."""
|
"""Wrap mutating methods to fail if the storage is readonly."""
|
||||||
|
|
||||||
for method in ("update", "upload", "delete"):
|
for method in ("update", "upload", "delete", "set_meta"):
|
||||||
setattr(cls, method, mutating_storage_method(getattr(cls, method)))
|
setattr(cls, method, mutating_storage_method(getattr(cls, method)))
|
||||||
return super().__init__(name, bases, d)
|
return super().__init__(name, bases, d)
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue