diff options
Diffstat (limited to 'mageiaSync')
-rw-r--r-- | mageiaSync/mageiaSyncExt.py | 24 | ||||
-rw-r--r-- | mageiaSync/mageiasync.py | 9 |
2 files changed, 0 insertions, 33 deletions
diff --git a/mageiaSync/mageiaSyncExt.py b/mageiaSync/mageiaSyncExt.py index f2240fd..4abbee6 100644 --- a/mageiaSync/mageiaSyncExt.py +++ b/mageiaSync/mageiaSyncExt.py @@ -58,30 +58,6 @@ class checkThread(QThread): checkvalue += 128 return checkvalue - def processDate(self): - import datetime as datetime - import time - import locale - locale.setlocale(locale.LC_ALL, 'C') - # Get and process the date from the file DATE.txt - try: - dateFile=open(str(self.destination)+'/'+self.path+'/DATE.txt','r') - except: - return False - refDate=dateFile.readline() - lits=re.split("\W+", refDate) - nums=re.findall("([0-9]+)", refDate) - refTime=re.findall("[0-9]*:[0-9]*:[0-9]*", refDate)[0] - refDay=eval(nums[0]) - refYear=eval(nums[-1]) - refMonth=time.strptime(lits[1], "%b").tm_mon - # Date of file - info=datetime.datetime.fromtimestamp(os.path.getmtime(str(self.destination)+'/'+self.path+'/'+self.name)) - if(refDay==info.day and refMonth==info.month and refYear==info.year and refTime==info.strftime("%H:%M:%S")): - return True - else: - return False - def setup(self, destination, path,name,isoIndex): self.destination=destination self.path=path diff --git a/mageiaSync/mageiasync.py b/mageiaSync/mageiasync.py index b67ea52..365a847 100644 --- a/mageiaSync/mageiasync.py +++ b/mageiaSync/mageiasync.py @@ -290,15 +290,6 @@ class IsosViewer(QMainWindow, mageiaSyncUI.Ui_mainWindow): self.model.setData(self.model.index(row, 4, QtCore.QModelIndex()),QIcon("preflight-verifier"),1) self.model.setData(self.model.index(row, 3, QtCore.QModelIndex()), val) - def dateCheck(self,check): - if check>=128: - val=self.tr("OK") - row=check-128 - else: - val=self.tr("Failed") - row=check - self.model.setData(self.model.index(row, 3, QtCore.QModelIndex()), val) - def sizeUpdate(self,signal,isoSize): col=(int)(signal/100) row=signal-col*100 |