option to store state out-of-volume (mostly untested)

This commit is contained in:
ed
2021-06-10 01:27:04 +02:00
parent a359d64d44
commit d6bf300d80
14 changed files with 123 additions and 44 deletions

View File

@@ -37,6 +37,7 @@ class Cfg(Namespace):
nih=True,
mtp=[],
mte="a",
hist=None,
**{k: False for k in "e2d e2ds e2dsa e2t e2ts e2tsr".split()}
)

View File

@@ -18,8 +18,8 @@ from copyparty import util
class Cfg(Namespace):
def __init__(self, a=[], v=[], c=None):
ex = {k: False for k in "e2d e2ds e2dsa e2t e2ts e2tsr".split()}
ex["mtp"] = []
ex["mte"] = "a"
ex2 = {"mtp": [], "mte": "a", "hist": None}
ex.update(ex2)
super(Cfg, self).__init__(a=a, v=v, c=c, **ex)