Move zipping of project to storage class

This commit is contained in:
Veronica Berglyd Olsen
2022-11-08 19:25:56 +01:00
parent 262a6c36b7
commit b024c0996d
8 changed files with 96 additions and 95 deletions
+4 -4
View File
@@ -34,7 +34,7 @@ from pathlib import Path
from novelwriter.common import (
checkBool, checkInt, checkString, checkStringNone, formatTimeStamp,
simplified, yesNo
hexToInt, simplified, yesNo
)
from novelwriter.constants import nwFiles
@@ -104,9 +104,9 @@ class ProjectXMLReader:
self._state = XMLReadState.NO_ACTION
self._root = ""
self._version = 0x0000
self._version = 0x0
self._appVersion = ""
self._hexVersion = ""
self._hexVersion = 0x0
self._timeStamp = ""
return
@@ -200,7 +200,7 @@ class ProjectXMLReader:
logger.debug("XML is '%s' version '%s'", self._root, fileVersion)
self._appVersion = str(xRoot.attrib.get("appVersion", ""))
self._hexVersion = str(xRoot.attrib.get("hexVersion", ""))
self._hexVersion = hexToInt(xRoot.attrib.get("hexVersion", ""))
self._timeStamp = str(xRoot.attrib.get("timeStamp", ""))
for xSection in xRoot: