seguono modifiche al main per test parametri nuovo file di
configurazione
This commit is contained in:
@@ -71,12 +71,12 @@ class bananaMain(PyQt5.QtWidgets.QMainWindow):
|
|||||||
|
|
||||||
def openLoadPreset(self):
|
def openLoadPreset(self):
|
||||||
self.logger.debug("Apri Carica Preset")
|
self.logger.debug("Apri Carica Preset")
|
||||||
self.logger.debug(str(self.conf.getParam('splitter','paths')))
|
self.logger.debug(str(self.conf.getParam('paths')))
|
||||||
pass
|
pass
|
||||||
|
|
||||||
def openSavePreset(self):
|
def openSavePreset(self):
|
||||||
self.logger.debug("Apri Salva Preset")
|
self.logger.debug("Apri Salva Preset")
|
||||||
self.logger.debug(str(self.conf.setParam("pippo", 'splitter','paths', 'INworkPath')))
|
self.logger.debug(str(self.conf.setParam("pippo",'paths', 'INworkPath')))
|
||||||
pass
|
pass
|
||||||
|
|
||||||
def openAdvOpt(self):
|
def openAdvOpt(self):
|
||||||
|
|||||||
@@ -82,7 +82,7 @@ class bananaCONF(object):
|
|||||||
def setParam(self, val, *keys):
|
def setParam(self, val, *keys):
|
||||||
sv = self.settingsList[self.inUse]
|
sv = self.settingsList[self.inUse]
|
||||||
for k in keys:
|
for k in keys:
|
||||||
sv = sv[k]
|
sv = *sv[k]
|
||||||
sv = val
|
sv = val
|
||||||
pass
|
pass
|
||||||
|
|
||||||
|
|||||||
@@ -1,78 +1,75 @@
|
|||||||
{
|
{
|
||||||
"version": "v1.1a",
|
"version": "v1.1a",
|
||||||
"splitter": {
|
"paths": {
|
||||||
"name": "",
|
"INworkPath": "D:\\Emanuele\\Documenti\\workspace\\bananaSPLIT\\TestFiles\\",
|
||||||
"paths": {
|
"OUTworkPath": "H:\\",
|
||||||
"INworkPath": "D:\\Emanuele\\Documenti\\workspace\\bananaSPLIT\\TestFiles\\",
|
"OUTnameFormat": "TEST_{docnum}_{year:04d}{month:02d}{day:02d}_{title}.txt"
|
||||||
"OUTworkPath": "H:\\",
|
},
|
||||||
"OUTnameFormat": "TEST_{docnum}_{year:04d}{month:02d}{day:02d}_{title}.txt"
|
"docStruct": {
|
||||||
},
|
"docSep": "\\s*Copyright [(0-9)]+",
|
||||||
"docStruct": {
|
"dateFormat": "{month} {day:d}, {year:d}{}",
|
||||||
"docSep": "\\s*Copyright [(0-9)]+",
|
"dateWords": [
|
||||||
"dateFormat": "{month} {day:d}, {year:d}{}",
|
"January",
|
||||||
"dateWords": [
|
"February",
|
||||||
"January",
|
"March",
|
||||||
"February",
|
"April",
|
||||||
"March",
|
"May",
|
||||||
"April",
|
"June",
|
||||||
"May",
|
"July",
|
||||||
"June",
|
"August",
|
||||||
"July",
|
"September",
|
||||||
"August",
|
"October",
|
||||||
"September",
|
"November",
|
||||||
"October",
|
"December"
|
||||||
"November",
|
],
|
||||||
"December"
|
"headWords": [
|
||||||
],
|
"BYLINE:",
|
||||||
"headWords": [
|
"SECTION:",
|
||||||
"BYLINE:",
|
"LENGTH:",
|
||||||
"SECTION:",
|
"DATELINE:",
|
||||||
"LENGTH:",
|
"HIGHLIGHT:",
|
||||||
"DATELINE:",
|
"Email:"
|
||||||
"HIGHLIGHT:",
|
],
|
||||||
"Email:"
|
"tailWords": [
|
||||||
],
|
"Newstex ID:",
|
||||||
"tailWords": [
|
"NOTES:",
|
||||||
"Newstex ID:",
|
"LANGUAGE:",
|
||||||
"NOTES:",
|
"GRAPHIC:",
|
||||||
"LANGUAGE:",
|
"TYPE:",
|
||||||
"GRAPHIC:",
|
"URL:",
|
||||||
"TYPE:",
|
"LOAD-DATE:",
|
||||||
"URL:",
|
"PUBLICATION-TYPE:",
|
||||||
"LOAD-DATE:",
|
"DOCUMENT-TYPE:",
|
||||||
"PUBLICATION-TYPE:",
|
"CHARTS:",
|
||||||
"DOCUMENT-TYPE:",
|
"JOURNAL-CODE:"
|
||||||
"CHARTS:",
|
]
|
||||||
"JOURNAL-CODE:"
|
},
|
||||||
]
|
"settings": {
|
||||||
},
|
"encoding": "utf-8",
|
||||||
"settings": {
|
"monthPosition": 0,
|
||||||
"encoding": "utf-8",
|
"getNewsPaperName": true,
|
||||||
"monthPosition": 0,
|
"nameNotFoundStr": "ND",
|
||||||
"getNewsPaperName": true,
|
"includeTitle": true,
|
||||||
"nameNotFoundStr": "ND",
|
"removeDuplicates": true,
|
||||||
"includeTitle": true,
|
"showSkipped": true,
|
||||||
"removeDuplicates": true,
|
"showRemovedDuplicates": false,
|
||||||
"showSkipped": true,
|
"maxTitleLen": 32,
|
||||||
"showRemovedDuplicates": false,
|
"loadTXT": true,
|
||||||
"maxTitleLen": 32,
|
"loadDOCX": false,
|
||||||
"loadTXT": true,
|
"removeOldFiles": true,
|
||||||
"loadDOCX": false,
|
"saveSeparateFiles": true,
|
||||||
"removeOldFiles": true,
|
"saveBodyFile": true,
|
||||||
"saveSeparateFiles": true,
|
"saveBodyNumber": true,
|
||||||
"saveBodyFile": true,
|
"delLF": false,
|
||||||
"saveBodyNumber": true,
|
"delWordBreak": true,
|
||||||
"delLF": false,
|
"delChars": [
|
||||||
"delWordBreak": true,
|
"'",
|
||||||
"delChars": [
|
"@",
|
||||||
"'",
|
"#",
|
||||||
"@",
|
"$",
|
||||||
"#",
|
"%",
|
||||||
"$",
|
"^",
|
||||||
"%",
|
"&"
|
||||||
"^",
|
]
|
||||||
"&"
|
|
||||||
]
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user