[Uludag-commits] r11943 - trunk/bocek/src
svn-uludag at uludag.org.tr
svn-uludag at uludag.org.tr
11 Oca 2007 Per 22:57:42 EET
Author: gokmen.goksel
Date: Thu Jan 11 22:57:42 2007
New Revision: 11943
Modified:
trunk/bocek/src/bocek.py
Log:
* added control for system information
Modified: trunk/bocek/src/bocek.py
=================================================================
--- trunk/bocek/src/bocek.py (original)
+++ trunk/bocek/src/bocek.py Thu Jan 11 22:57:42 2007
@@ -63,7 +63,7 @@
guiApp.quit()
def buildReport(self):
- if self.checkNeeds():
+ if (self.checkNeeds()) and (len(self.getCheckedLogs())>0):
self.setCursor(Qt.waitCursor)
self.output=""
## FIXME ProgressBar Support
@@ -91,6 +91,8 @@
self.lastReportFile = self.writeReport()
self.updateInfo("Report saved as %s "%self.lastReportFile)
self.setCursor(Qt.arrowCursor)
+ elif not len(self.getCheckedLogs())>0:
+ self.showInfo("Nothing to save")
def updateInfo(self,msg):
self.labelStatus.setText(msg)
@@ -104,15 +106,17 @@
def sendReport(self):
if self.checkNeeds():
self.setCursor(Qt.waitCursor)
- self.updateInfo("Bug report is sending .. Please wait..")
- if not self.lastReportFile:
+ files=[]
+ if (not self.lastReportFile) and (len(self.getCheckedLogs())>0):
self.buildReport()
- files = [self.lastReportFile]
picPath = str(self.picturePath.lineEdit().text())
if not picPath=="":
if os.path.exists(picPath):
if os.stat(picPath)[6] < (consts.pictureMaxSize * 1000):
files.append(picPath)
+ if not self.lastReportFile=="":
+ files.append(self.lastReportFile)
+ self.updateInfo("Bug report is sending .. Please wait..")
if mail.send_mail(str(self.lineEmail.text()),
["gokmen at pardus.org.tr"],
str(self.lineSummary.text()),
Uludag-commits mesaj listesiyle ilgili
daha fazla bilgi