diff options
author | Papoteur <papoteur@mageialinux-online.org> | 2016-05-24 21:44:30 +0200 |
---|---|---|
committer | Papoteur <papoteur@mageialinux-online.org> | 2016-05-24 21:44:30 +0200 |
commit | 646640b0962a1b309bc35157406512129fcc4c4d (patch) | |
tree | 026d1949750904a10b81d6dacd4bbb08eb10133f | |
parent | 1d2dc97ffac110ee8dca2d3a83deb6953bcfee01 (diff) | |
download | MageiaSync-646640b0962a1b309bc35157406512129fcc4c4d.tar MageiaSync-646640b0962a1b309bc35157406512129fcc4c4d.tar.gz MageiaSync-646640b0962a1b309bc35157406512129fcc4c4d.tar.bz2 MageiaSync-646640b0962a1b309bc35157406512129fcc4c4d.tar.xz MageiaSync-646640b0962a1b309bc35157406512129fcc4c4d.zip |
Suppress no more used code (Date check)
-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 |