manuskript/bin/test_io.py
TheJackiMonster 08220eda42
Added new data model for old revisions and statuses
Signed-off-by: TheJackiMonster <thejackimonster@gmail.com>
2021-05-05 14:59:07 +02:00

40 lines
619 B
Python

#!/usr/bin/env python3
# -*- coding: utf-8 -*-
import os
import sys
realpath = os.path.realpath(__file__)
sys.path.insert(1, os.path.join(os.path.dirname(realpath), '..'))
import manuskript.io as io
import manuskript.data as data
path = os.path.join(sys.path[1], "sample-projects/book-of-acts")
settings = data.Settings(path)
settings.load()
settings.save()
print(settings.properties)
plots = data.Plots(path)
plots.load()
plots.save()
revs = data.Revisions(path)
revs.load()
statusHost = data.StatusHost(path)
statusHost.load()
for status in statusHost:
print("--" + str(status))
statusHost.save()