Reorganise constants, and add ISO language codes in order to drop dependency pycountry

This commit is contained in:
Veronica K. B. Olsen
2019-11-05 18:14:40 +01:00
parent 993339c96c
commit 0e84452533
44 changed files with 610 additions and 126 deletions
+6 -6
View File
@@ -8,10 +8,10 @@ from nw.project.project import NWProject
from nw.project.status import NWStatus
__all__ = [
NWBackup,
NWDoc,
NWIndex,
NWItem,
NWProject,
NWStatus,
"NWBackup",
"NWDoc",
"NWIndex",
"NWItem",
"NWProject",
"NWStatus",
]
+1 -1
View File
@@ -17,7 +17,7 @@ from os import path, mkdir, listdir
from shutil import make_archive
from datetime import datetime
from nw.enum import nwAlert
from nw.constants import nwAlert
logger = logging.getLogger(__name__)
+1 -1
View File
@@ -15,7 +15,7 @@ import nw
from os import path, mkdir, rename, unlink
from nw.enum import nwAlert
from nw.constants import nwAlert
logger = logging.getLogger(__name__)
+3 -2
View File
@@ -17,8 +17,9 @@ import nw
from os import path
from nw.project.document import NWDoc
from nw.constants import nwFiles, nwKeyWords
from nw.enum import nwItemType, nwItemClass, nwItemLayout, nwAlert
from nw.constants import (
nwFiles, nwKeyWords, nwItemType, nwItemClass, nwItemLayout, nwAlert
)
logger = logging.getLogger(__name__)
+1 -1
View File
@@ -18,7 +18,7 @@ from lxml import etree
from datetime import datetime
from nw.common import checkInt
from nw.enum import nwItemType, nwItemClass, nwItemLayout
from nw.constants import nwItemType, nwItemClass, nwItemLayout
logger = logging.getLogger(__name__)
+3 -2
View File
@@ -22,9 +22,10 @@ from time import time
from nw.project.status import NWStatus
from nw.project.item import NWItem
from nw.constants import nwFiles, nwConst
from nw.common import checkString, checkBool, checkInt
from nw.enum import nwItemType, nwItemClass, nwItemLayout, nwAlert
from nw.constants import (
nwFiles, nwConst, nwItemType, nwItemClass, nwItemLayout, nwAlert
)
logger = logging.getLogger(__name__)
+1 -1
View File
@@ -16,7 +16,7 @@ import nw
from lxml import etree
from nw.common import checkInt
from nw.enum import nwItemClass
from nw.constants import nwItemClass
logger = logging.getLogger(__name__)