mirror of
https://github.com/samsonjs/vdirsyncer.git
synced 2026-04-01 10:05:50 +00:00
Fix faulty logic again
This commit is contained in:
parent
5f27d25b3c
commit
42d69b1dbd
1 changed files with 3 additions and 1 deletions
|
|
@ -41,12 +41,14 @@ class Storage(object):
|
|||
# A value of True means the storage does not support write-methods such as
|
||||
# upload, update and delete. A value of False means the storage does
|
||||
# support those methods, but it may also be used in read-only mode.
|
||||
read_only = None
|
||||
read_only = False
|
||||
|
||||
# The attribute values to show in the representation of the storage.
|
||||
_repr_attributes = ()
|
||||
|
||||
def __init__(self, read_only=None):
|
||||
if read_only is None:
|
||||
read_only = self.read_only
|
||||
if self.read_only and not read_only:
|
||||
raise ValueError('This storage is read-only.')
|
||||
self.read_only = bool(read_only)
|
||||
|
|
|
|||
Loading…
Reference in a new issue