projects
/
minwii.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Prise en charge de l'analyseur de logs dans l'installateur Windows.
[minwii.git]
/
src
/
minwii
/
logapp.py
diff --git
a/src/minwii/logapp.py
b/src/minwii/logapp.py
index
9306809
..
b10ca16
100755
(executable)
--- a/
src/minwii/logapp.py
+++ b/
src/minwii/logapp.py
@@
-61,13
+61,14
@@
class Application(Frame) :
def chooseDirDialog(self, dir=None) :
if dir is None :
def chooseDirDialog(self, dir=None) :
if dir is None :
- self.logDir = tkFileDialog.askdirectory()
+ self.logDir = tkFileDialog.askdirectory(
title='Sélectionnez un dossier de fichiers de logs'
)
else :
self.logDir = dir
if self.logDir :
self.logFiles = glob(pjoin(self.logDir, '*.log'))
self._cleanupJunkFiles()
self.logFiles.sort()
else :
self.logDir = dir
if self.logDir :
self.logFiles = glob(pjoin(self.logDir, '*.log'))
self._cleanupJunkFiles()
self.logFiles.sort()
+ self.logFiles.reverse()
self.dataFrame.grid(row=0, column=0, sticky=NW)
self.nav.setSize(len(self.logFiles))
self.nav.grid(row=0, column=1)
self.dataFrame.grid(row=0, column=0, sticky=NW)
self.nav.setSize(len(self.logFiles))
self.nav.grid(row=0, column=1)
@@
-80,8
+81,12
@@
class Application(Frame) :
if not getsize(f) :
os.remove(f)
continue
if not getsize(f) :
os.remove(f)
continue
- # TODO : vérifier qu'il existe des événements
else :
else :
+ lfa = LogFileAnalyser(f)
+ if lfa.getLastEventTicks() is None :
+ os.remove(f)
+ continue
+
files.append(f)
self.logFiles = files
files.append(f)
self.logFiles = files