Reorganise constants, and add ISO language codes in order to drop dependency pycountry
This commit is contained in:
@@ -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",
|
||||
]
|
||||
|
||||
@@ -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__)
|
||||
|
||||
|
||||
@@ -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
@@ -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
@@ -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__)
|
||||
|
||||
|
||||
@@ -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__)
|
||||
|
||||
|
||||
@@ -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__)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user