3024 dlg.exec_() |
3024 dlg.exec_() |
3025 |
3025 |
3026 def __hasErrorLog(self): |
3026 def __hasErrorLog(self): |
3027 """ |
3027 """ |
3028 Private method to check, if an error log file exists. |
3028 Private method to check, if an error log file exists. |
|
3029 |
|
3030 @return flag indicating the existence of an error log file (boolean) |
3029 """ |
3031 """ |
3030 logFile = os.path.join(Utilities.getConfigDir(), |
3032 logFile = os.path.join(Utilities.getConfigDir(), |
3031 self.ErrorLogFileName) |
3033 self.ErrorLogFileName) |
3032 return os.path.exists(logFile) |
3034 return os.path.exists(logFile) |
3033 |
3035 |
5785 if lastCheck.isValid(): |
5787 if lastCheck.isValid(): |
5786 now = QDate.currentDate() |
5788 now = QDate.currentDate() |
5787 if period == 2 and lastCheck.day() == now.day(): |
5789 if period == 2 and lastCheck.day() == now.day(): |
5788 # daily |
5790 # daily |
5789 return |
5791 return |
5790 elif period == 3 and lastCheck.daysTo(now) < 7: |
5792 elif (period == 3 and |
|
5793 lastCheck.weekNumber() == now.weekNumber()): |
5791 # weekly |
5794 # weekly |
5792 return |
5795 return |
5793 elif period == 4 and lastCheck.month() == now.month(): |
5796 elif period == 4 and lastCheck.month() == now.month(): |
5794 # monthly |
5797 # monthly |
5795 return |
5798 return |